MobilePay payment actions via eComm API
Prerequisites
Create a transaction
{
"intent": "AUTHORIZE",
"paymentProviderContract": "YOUR_PAYMENT_PROVIDER_CONTRACT",
"amount": {
"value": 2700,
"currencyCode": "USD"
},
"customer": {
"email": "[email protected]",
"payerId": "WDJJHEBZ4X2LY",
"phoneNumber": {
"phoneType": "MOBILE",
"value": "64646464"
},
"birthDate": "2000-01-31",
"identification": {
"taxIdentificationNumber": "123456",
"taxIdentificationType": "BR_CNPJ"
},
"address": {
"country": "IN",
"postalCode": "570023",
"countrySubdivision": "IN-MH",
"city": "yyy",
"addressLine1": "add1",
"addressLine2": "add2"
},
"firstName": "James",
"lastName": "Smith"
},
"applicationContext": {
"brandName": "MAHENDRA",
"locale": "he-IL",
"landingPage": "BILLING",
"returnUrl": "http://example.com/success",
"cancelUrl": "http://example.com/failure"
},
"shipping": {
"address": {
"country": "IN",
"postalCode": "91",
"countrySubdivision": "IN-MH",
"city": "mysore",
"addressLine1": "walstreet",
"addressLine2": "forcircle"
},
"fullName": "JamesSmith"
},
"items": [
{
"name": "Mac Laptop",
"unitAmount": {
"currencyCode": "USD",
"value": 100
},
"tax": {
"currencyCode": "USD",
"value": 100
},
"quantity": "1",
"description": "Dell Laptop",
"sku": "123",
"category": "PHYSICAL_GOODS"
},
{
"name": "Phone",
"unitAmount": {
"currencyCode": "USD",
"value": 100
},
"tax": {
"currencyCode": "USD",
"value": 100
},
"quantity": "10",
"description": "Apple phone",
"sku": "456",
"category": "PHYSICAL_GOODS"
},
{
"name": "Dell XPS 9310 13.4 FHD Display Thin & Light 11th Gen Laptop (i5-1135G7 / 8 GB / 512 SSD / Integrated Graphics / 1Yr Premium",
"unitAmount": {
"currencyCode": "USD",
"value": 100
},
"tax": {
"currencyCode": "USD",
"value": 100
},
"quantity": "1",
"description": "groceries",
"sku": "456",
"category": "PHYSICAL_GOODS"
},
{
"name": "Samsung 6.5 kg Fully-Automatic Top Loading Washing Machine (WA65A4002VS/TL, Imperial Silver, Center Jet Technology)",
"unitAmount": {
"currencyCode": "USD",
"value": 100
},
"tax": {
"currencyCode": "USD",
"value": 100
},
"quantity": "1",
"description": "product",
"sku": "456",
"category": "PHYSICAL_GOODS"
}
],
"dynamicDescriptor": "Vipps order DD123",
"merchantReference": "DD123-reference",
"detailedAmount": {
"discount": {
"currencyCode": "USD",
"value": 100
},
"shippingDiscount": {
"currencyCode": "USD",
"value": 100
},
"insurance": {
"currencyCode": "USD",
"value": 100
},
"handling": {
"currencyCode": "USD",
"value": 100
},
"shipping": {
"currencyCode": "USD",
"value": 100
}
}
}Approve the transaction
Authorize the transaction
Capture a payment
PreviousMobilePay payment actions via Verifone CentralNextKlarna payment actions via Verifone Central
Last updated
Was this helpful?
