Embedded
Create a payment request and return a payment_token for iframe flow
Changed onCreate a payment request and return a payment_token for iframe flow
post/api/v1/embedded/payment-requests
Request
- Base URLhttps://core.quidkey.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"merchant_id": "550e8400-e29b-41d4-a716-446655440000",
"customer": {
"name": "John Doe",
"email": "john@example.com",
"phone": "+351960123456",
"country": "GB"
},
"order": {
"order_id": "ORD-123456",
"amount": 9300,
"currency": "GBP",
"payment_reference": "Barcelona Tryp",
"locale": "en-GB",
"test_transaction": true,
"rewards": {
"extra_rewards": 150,
"total_rewards": 300,
"description": "Loyalty bonus + base rewards"
}
},
"device_type": "ios",
"billing_address": {
"address_line1": "12 West Common Drive",
"address_line2": "Flat 1",
"apartment": "Apt 5B",
"city": "London",
"state_province": "Greater London",
"country": "GB",
"postal_code": "SE1 1AA",
"company_name": "Acme Ltd"
},
"redirect_urls": {
"success_url": "https://tryp.com/checkout/success",
"failure_url": "https://tryp.com/checkout/error"
},
"webhook_endpoints": [
"wizzair-prod"
]
}Response
Created
Example response
{
"success": true,
"data": {
"payment_token": "ptok_efghijklm...",
"expires_in": 900
}
}Changes
- info
added the new optional request property
- info
- breaking
added the pattern
^[A-Za-z]{2}$to the request property/ - breaking
added the pattern
^[A-Za-z]{3}$to the request property/ - breaking
the
/response's property type changed fromstringto no type for status - warning
removed the optional property
/from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added
subschema #1subschema #2to the/response propertyallOflist for the response status
- breaking