Create Credit Card Payment for ECOM
POST /v1/pay/cc/process
In 3DS authentication , you need to pass the following additional information in header.
Headers
user-agent string
User agent.
accept string
Accept
accept-encoding string
Accept encoding.
accept-charset string
Accept charset.
Attributes
payment_intent string
Payment intent token.
paymentToken string
Payment token generated from Create Payment Token request.
type string
Type 1 is ECOM
payment and type 2 is MOTO
.
raw_amount float
Payment amount.
customer_email string
Customer email.
customer_name string
Customer name.
transaction_unique string
Transaction unique.
device_timezone integer
Device timezone value which can be fetched using javascript. This value is required in 3DS.
device_capabilities string
Device capabilities which can be fetched using javascript. This value is required in 3DS.
device_accept_language string
Device accept language which can be fetched using javascript. This value is required in 3DS.
device_screen_resolution string
Device accept language which can be fetched using javascript. This value is required in 3DS.
remote_address string
Remote address which can be fetched using javascript. This value is required in 3DS.
Request
POST https://secure.blinkpayment.co.uk/api/v1/pay/cc/process Content-Type: application/json Authentication: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "payment_intent": "pi_Swhc84aSLtUGppvPARX...", "paymentToken": "eyJwYXltZW50VG9rZW4iOns...", "type": 1, "raw_amount": 1.1, "customer_email": "random@email.com", "customer_name": "A Smith", "transaction_unique": "PHnRNzjUw..." }
Response
{ "url": "https://api-demo-php.blinkpayment.co.uk/return?res=QkwtTVlVRTV...%3D%3D" }