POST api/order/beginPayment

Method to start payment process

Request Information

URI Parameters

None.

Body Parameters

NameDescriptionTypeAdditional 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

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"
}

Response Information

Link to paymet page

Response Formats

application/json, text/json

Sample:
"sample string 1"