...
Step 7. OpenTrade Commerce will send back the payment data in response to the GetPaymentParameters method invocation.
Раскрыть |
---|
...
| ||||||||||||||||||||||||||||||||||||||||
PaymentFormAnswer response sample
where
Variants of parameters names (for description see 3.3.1)
|
...
Step 15. The contractor will notify OpenTrade Commerce of the completed payment.
Раскрыть | ||
---|---|---|
|
...
| |||||||||||||||||
It is necessary to pass the following parameters to the notification address (resultUrl provided to OpenTrade Commerce in Step7) using the HTTP transport. Parameters (for description see 3.3.1):
|
...
|
Step 16. OpenTrade Commerce will verify the notification parameters. If everything checks out and the payment status is considered “Completed”, OpenTrade Commerce will enter a sum to the payer’s account.
Step 17. OpenTrade Commerce will confirm the contractor that the payment notification has been received.
Раскрыть | ||
---|---|---|
|
Error-free notification processing response
Response with error code
Where
|
...
Step 18. The contractor will confirm the PS that the payment notification has been received
3.3 Tables
3.3.1 Payment parameters
Parameter | Description | Allowed Values | Note |
---|---|---|---|
Instancekey | Unique ID identifying contractor |
|
|
secret | Payment secret |
| Required for creation of a digital signature 3.4. Provided to the Contractor by Opentrade Commerce |
orderId | Unique ID identifying order for payment |
| Available if a customer pays for an order Unavailable when replenishing |
paymentId | Unique ID identifying payment at OpenTrade Commerce internal billing system |
|
|
userId | Unique ID identifying OpenTrade Commerce user |
|
|
Amount | Amount of payment |
| The point as a decimal mark and two digits after it |
Currency | ISO 4217 (3-letter currency code) | 643 - RUB | |
Status | Payment status | Completed
Canceled |
|
Signature | MD5-hash of digital signature |
| 32 hexadecimal uppercase symbols |
description | Payment description |
|
|
3.3.2 NoticeErrorCode description
...
Code | Description |
---|---|
OK | A notification has been processed. |
VerificationError | Incoming data verification error |
SignatureVerificationError | There is a mismatch between the digital signature received from the contractor and the one calculated by OpenTrade Commerce
|
InternalError | OpenTrade Commerce service internal error. Unhandled error |
...
3.4.Rules for elaborating a digital signature when the contractor notifies Opentrade Commerce
The MD5-hash algorithm is applied to a text represented as a sequence of parameter values separated by semicolon.
Orderld; paymentld; amount; currency; status; secret |
Example:
String | Result |
111;222;0000000001;500.15;643;Completed;secret | 11AE0ABC8F0CF443F950D84C278F1C51 |
...