Required fields
-
Follow-Up:
Hello Andreas,
I just received the following message from the paypal technical customer support and they write the following concerning the required fields. As it seems the plugin is requesting certain information, not Paypal plus.Hi Hendrik,
In this case I see that you are sending a PATCH request to add some details to the transaction. If you don’t pass the shipping address object then it should be fine but in all your logs where the error is returned you are passing it and then if you pass it the country code is compulsory.
Try not to pass the shipping address object and it will be fine. Example of a PATCH request body:
[
{
“op”: “replace”,
“path”: “/transactions/0/amount”,
“value”: {
“currency”: “USD”,
“details”: {
“shipping”: “3”,
“subtotal”: “4”,
“tax”: “1”
},
“total”: “8”
}
},
{
“op”: “add”,
“path”: “/transactions/0/custom”,
“value”: “TEST”
},
{
“op”: “add”,
“path”: “/transactions/0/invoice_number”,
“value”: “2244D3FF89”
}
]So my question is whether there is a way to modify the plugin or the info that is being requested in order to eliminate the fields.
Thanks for your help!!
Hendrik
The topic ‘Required fields’ is closed to new replies.