Authorize Payment (Apple Pay)
/api/pay/v1/orders/{order_id}/payments/{payments_id}/authorizeUse this API to authorize payments initiated through Apple Pay.
Note: You can use this API only if you are decrypting the Apple Pay payment token on your end using the Apple Pay JS SDK.
Bearer token. Get token →Path Parameters
| Name | Type | Description |
|---|---|---|
order_id | stringrequired | Unique identifier of the order in the Pine Labs Online database. |
payments_id | stringrequired | Unique identifier of the payment in the Pine Labs Online database. Maximum length: 50 characters. |
Request Body
| Name | Type | Description |
|---|---|---|
decrypted_card_details | object | An object that contains the decrypted card details. |
token | stringrequired | Unique identifier of the card as per the token transaction type. Supported characters: A-Z, a-z, 0-9, . / \ - _ , ( ) ' |
expiration_month | stringrequired | Card token expiry month. Must be 2 digits. |
expiration_year | stringrequired | Card token expiry year. Must be 4 digits. |
cryptogram | stringrequired | Unique encrypted text from the Apple Pay token. |
cavv | string | Unique encrypted text. Mandatory for Mastercard. |
eci | string | Indicates the authentication outcome for the transaction. |
card_meta_data | object | An object that contains additional card meta details. |
Response
| Name | Type | Description |
|---|---|---|
data | object | |
order_id | string | |
merchant_order_reference | string | |
type | string | Allowed values: CHARGEREFUND |
status | string | Allowed values: CREATEDPENDINGPROCESSEDAUTHORIZEDCANCELLEDATTEMPTEDFAILEDFULLY_REFUNDEDPARTIALLY_REFUNDED |
callback_url | string | |
failure_callback_url | string | |
merchant_id | string | |
order_amount | object | |
pre_auth | boolean | |
part_payment | boolean | Whether the transaction is a part payment. |
allowed_payment_methods | string[] | |
purchase_details | object | |
payments | object[] | |
created_at | string | |
updated_at | string | |
integration_mode | string | Allowed values: SEAMLESSREDIRECT |
Status Codes
200 | Payment authorized successfully. |
400 | The request was malformed or missing required fields. |
401 | Authentication failed — missing, expired, or invalid Bearer token. |
404 | The requested resource does not exist. |
422 | Unprocessable Entity — invalid card details or authorization failed. |
500 | An unexpected error occurred on the server. |
curl --request POST \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/orders/v1-4405071524-aa-qlAtAf/payments/v1-5206071124-aa-mpLhF3-cc-l/authorize \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"decrypted_card_details": {
"token": "4111111111111111",
"expiration_month": "12",
"expiration_year": "2031",
"cryptogram": "AceY+igABPs3jdwNaDg3MAACAAA=",
"cavv": "AceY+igABPs3jdwNaDg3MAACAAA=",
"eci": "05",
"card_meta_data": {
"card_type": "DEBIT",
"network_name": "VISA"
}
}
}'Run this request
order_idpayments_id{
"data": {
"order_id": "v1-251012055723-aa-Vhv53a",
"merchant_order_reference": "3fb59787-c38b-4986-87da-39be0a585fae",
"type": "CHARGE",
"status": "PROCESSED",
"callback_url": "https://simple-callback.onrender.com/payment/callback",
"failure_callback_url": "",
"merchant_id": "106974",
"order_amount": {
"value": 10000,
"currency": "INR"
},
"pre_auth": false,
"part_payment": false,
"allowed_payment_methods": [
"CARD",
"WALLET"
],
"purchase_details": {
"customer": {
"email_id": "joe.sam@gmail.com",
"first_name": "joe",
"last_name": "kumar",
"mobile_number": "192192883",
"country_code": "91",
"billing_address": {
"address1": "10 Downing Street Westminster London",
"address2": "Oxford Street Westminster London",
"address3": "Baker Street Westminster London",
"pincode": "51524036",
"city": "Westminster",
"state": "Westminster",
"country": "London",
"full_name": "Kevin Bob",
"adddress_type": "Home",
"address_category": "billing"
},
"shipping_address": {
"address1": "10 Downing Street Westminster London",
"address2": "Oxford Street Westminster London",
"address3": "Baker Street Westminster London",
"pincode": "51524036",
"city": "Westminster",
"state": "Westminster",
"country": "London",
"full_name": "Kevin Bob",
"adddress_type": "Home",
"address_category": "shipping"
},
"is_edit_customer_details_allowed": false
},
"merchant_metadata": {}
},
"payments": [
{
"id": "v1-251012055723-aa-Vhv53a-wa-a",
"merchant_payment_reference": "def750b1-1c14-48fa-ad6e-98d42bdd7fba",
"status": "PROCESSED",
"payment_amount": {
"value": 10000,
"currency": "INR"
},
"payment_method": "WALLET",
"payment_option": {
"wallet_details": {
"wallet_code": "APPLE_PAY",
"wallet_card_data": {
"card_type": "CREDIT",
"network_name": "VISA",
"issuer_name": "INTL HDQTRS-CENTER OWNED",
"card_category": "Consumer",
"country_code": "IND",
"token_txn_type": "NETWORK_TOKEN",
"save": false,
"card_holder_name": "INDRANI DUTTA",
"bin_min": "4386371130",
"bin_max": "4386371139"
}
}
},
"acquirer_data": {
"approval_code": "831000",
"acquirer_reference": "19487181",
"rrn": "515511988482",
"is_aggregator": true,
"acquirer_name": "Cyber_Source_AXIS"
},
"created_at": "2025-06-04T11:00:56.591Z",
"updated_at": "2025-06-04T11:01:26.656Z"
}
],
"created_at": "2025-06-04T11:00:51.067Z",
"updated_at": "2025-06-04T11:01:26.656Z",
"integration_mode": "SEAMLESS"
}
}