Card Payment Buy (with card token)
TestingPOST
/partner/order/digital/buyLast modified: a year ago
Maintainer: Not configured
Request
Header Params
api-version
string
optional
Example:
2
Body Params application/json
price_token
string
required
Optional value
currency_code
enum<string>
optional
Allowed values:
GBPTRYUSDEUR
Default:
GBP
external_id
string
optional
customer
#/definitions/589981required
items
array [object {2}]
required
amount
integer
required
sku
string
required
payment_type
enum<string>
required
Allowed value:
creditcard
payment
#/definitions/854456required
Example
{
"price_token": "{{price_token}}",
"external_id": "HYAQA0171{% faker random.alphaNumeric %}{% faker random.alphaNumeric %}{% faker random.alphaNumeric %}{% faker random.alphaNumeric %}",
"customer": {
"external_id": "1801262568",
"firstname": "Mehmet",
"middlename": "",
"lastname": "Gülbilge",
"fullname": "Mehmet Gülbilge",
"email": "[email protected]",
"phone": "+9053228080351",
"gender": "M",
"identity_number": "12345677938",
"birthdate": "1970-01-31"
},
"items": [
{
"sku": "GAU",
"amount": 1
}
],
"payment_type": "creditcard",
"payment": {
"card_token": "token_HYAQA0171343asd",
"card_cvv": "000",
"customer_ip": "127.0.0.1"
}
}
Request samples
Responses
OK(200)
Parameter Error(422)
Forbidden(403)
Parameter Error(New Customer)(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
order_code
array[string]
required
guid
array[string]
required
price
number
required
tax
integer
required
total
number
required
order_at
string
required
orders
$ref(#/definitions/549775)[]
required
payment
#/definitions/787914required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"order_code": [
"9YMEK5RB"
],
"guid": [
"71E174B7-C7AD-47FB-836E-3895FF41D4F5"
],
"price": 559.4,
"tax": 0,
"total": 559.4,
"order_at": "2023-05-31 03:16:45",
"orders": [
{
"guid": "71E174B7-C7AD-47FB-836E-3895FF41D4F5",
"order_code": "9YMEK5RB",
"external_id": "HYAQA0171v96o",
"type": "Buy",
"price": 559.4,
"tax": 0,
"total": 559.4,
"currency_rate": 1,
"currency_total": 559.4,
"status_name": "Pending",
"order_at": "31-05-2023 03:16",
"currency_code": "GBP",
"items": [
{
"product_id": 3000001,
"product_name": "Gold - Digital storage",
"spot_price": 50.85,
"price": 55.94,
"tax_rate": 0,
"tax": 0,
"amount": 10,
"total": 559.4,
"sku": "GAU"
}
],
"customer": null
}
],
"payment": {
"status": "success",
"payment_reference": "HYAQA01373",
"card_number": "453809******3922",
"redirect_3d_link": "https://partner.test.mintedconnect.com/pay/24xEV8M0DD58NeWDBvQNhHvqxjKarTek/redirect"
}
},
"success": true,
"code": 0,
"message": ""
}
Last modified: a year ago