EagleCafe.Net |
Introduction for Shop |
|
|
For Testing - CLICK Join_Member
|
|
1. Case A |
* When customers use their own EPointS in a Shop. |
|
[ Parameter - Case A ]
No | VarName | Type | Maxlength | Memo |
1 | fromID | string | 50 | POST, email-ID (of customer) |
2 | toID | string | 50 | POST, email-ID (of shop) |
3 | amt | string | 50 | POST, EPoints (ex: 123456.789) |
4 | returnURL | string | 256 | POST, Eaglecafe.Net returns the result to this address |
5 | returnNo | string | 50 | POST, request_number (is Unique) |
6 | url_signature | string | 1024 | POST, $url_signature, OPENSSL_ALGO_SHA512 |
| | | | (in PHP)
$url_signature = "";
$sendmsg = $fromID. $toID. $amt. $returnURL. $returnNo;
$privkey2 = openssl_pkey_get_private($private_key, $pwd);
openssl_sign($sendmsg, $url_signature, $privkey2, OPENSSL_ALGO_SHA512);
$url_signature = urlencode($url_signature );
|
( conf. Source Code in PHP : example_01 )
|
Send to this Server URL : http://eaglecafe.net/ecn/test_epoint/shop_page_01_form.php
|
|
|
[ Return - Case A ]
No | VarName | Type | Maxlength | Memo |
1 | msg | string | 50 | GET, return Message & returnNo |
| | | |
ex 1) http://returnURL?msg=OK_(12345)
ex 2) http://returnURL?msg=fromID_error_(12345)
|
|
|
|
2. Case B |
* When the Shop pays EPointS to the customer. |
|
[ Parameter - Case B ]
No | VarName | Type | Maxlength | Memo |
1 | fromID | string | 50 | POST, email-ID (of shop) |
2 | toID | string | 50 | POST, email-ID (of customer) |
3 | amt | string | 50 | POST, EPoints (ex: 123456.789) |
4 | returnURL | string | 256 | POST, Eaglecafe.Net returns the result to this address |
5 | returnNo | string | 50 | POST, request_number (is Unique) |
6 | url_signature | string | 1024 | POST, $url_signature, OPENSSL_ALGO_SHA512 |
| | | | (in PHP)
$url_signature = "";
$sendmsg = $fromID. $toID. $amt. $returnURL. $returnNo;
$privkey2 = openssl_pkey_get_private($private_key, $pwd);
openssl_sign($sendmsg, $url_signature, $privkey2, OPENSSL_ALGO_SHA512);
$url_signature = urlencode($url_signature );
|
( conf. Source Code in PHP : example_02 )
|
Send to this Server URL : http://eaglecafe.net/ecn/test_epoint/shop_page_02_form.php
|
|
|
[ Return - Case B ]
No | VarName | Type | Maxlength | Memo |
1 | msg | string | 50 | GET, return Message & returnNo |
| | | |
ex 1) http://returnURL?msg=OK_(12345)
ex 2) http://returnURL?msg=fromID_error_(12345)
|
|
|
|
|
|