post https://evaluation-api.azpay.services/v1/receiver#paypalPlus
Through this endpoint is possible to create a Paypal Plus URL
important!
Keep the body params following the same sequence as you see above!
Example of API Response:
{
"transactionId": "13A80B4C-867A-5CDB-9E89-C4EF40645630",
"operationId": 11,
"status": 0,
"message": "Paypal URL has been generated successfully.",
"log": "",
"errorCode": "",
"order": {
"reference": "123456789",
"totalAmount": 10000,
"currency": "986",
"dateTime": "1550506747"
},
"processor": {
"acquirer": "Paypal Plus",
"acquirerId": "29",
"details": {
"id": "PAYID-LRVNV6Y3U596954BK308962V",
"amount": "100.00",
"date": "2019-02-18T16:19:06Z",
"state": "created",
"token": "EC-9ED98118JC612183N",
"acesstoken": "A21AAFubEtLpbZXlsFgKTc5y_lCWShz6cBnI-UsR0GcsaghF-yFAl4EzrP8Tfata4v0ZS1k5xNofeu39TRmzP8wAZH9zpWgkw",
"intent": "sale",
"urlPayment": "https:\/\/api.sandbox.paypal.com\/v1\/payments\/payment\/PAYID-LRVNV6Y3U596954BK308962V",
"urlExecute": "https:\/\/evaluation-api.azpay.com.br\/v1\/paypal\/plus\/13A80B4C-867A-5CDB-9E89-C4EF40645630\/execute"
},
"EncodedUrlAuthentication": "https%3A%2F%2Fwww.sandbox.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_express-checkout%26token%3DEC-9ED98118JC612183N",
"urlAuthentication": "https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr?cmd=_express-checkout&token=EC-9ED98118JC612183N"
}
}
{
"transactionId": null,
"status": {
"code": 409,
"message": "ERROR - XML"
},
"result": {
"error": {
"code": 101,
"action": "XML",
"message": "XML ERROR",
"details": "<![CDATA[Element 'merchantKey': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '10'.\n]]>",
"moreInfo": "<![CDATA[Please check fields format and special character.]]>"
}
}
}