POST api/order/beginPayment
Method to start payment process
Request Information
URI Parameters
None.
Body Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Order |
Order |
Order |
Required |
| CancelRedirect |
Url to the page, that should be opened after payment cancelation |
string |
Required |
| SuccessRedirect |
Url to the page, that should be opened after transaction successfully paid TransactionId will be added as a query parameter to the url |
string |
Required |
| OnContentSet |
On Content Set Options |
boolean |
Default value is False |
| PaymentChoiceId |
Payment Choice Id |
integer |
Default value is 0 |
Request Formats
application/json, text/json
Sample:
{
"order": {
"buyerInfo": {
"firstName": "sample string 1",
"surname": "sample string 2",
"address": "sample string 3",
"address2": "sample string 4",
"postCode": "sample string 5",
"town": "sample string 6",
"cellphoneNumber": "sample string 7"
},
"items": [
{
"itemType": 2,
"supplierId": 1,
"dealId": 2,
"quantity": 3,
"amount": 4.1,
"productCodeId": 5,
"cardNumber": "sample string 6"
},
{
"itemType": 2,
"supplierId": 1,
"dealId": 2,
"quantity": 3,
"amount": 4.1,
"productCodeId": 5,
"cardNumber": "sample string 6"
}
],
"shippingId": 1
},
"cancelRedirect": "sample string 1",
"successRedirect": "sample string 2",
"onContentSet": true,
"paymentChoiceId": 4
}
Response Information
Link to paymet page
Response Formats
application/json, text/json
Sample:
"sample string 1"