I am looking for a simple JSON example of a paypal definition for a donation. This does not seem to be covered in PayPal docs. It needs a simple parameter for a specific date for the payment to be made, and a option for it to be recurring on this date annually. I have tried the following , but it does not allow for a payment date or recurring. What needs adding?
var create_payment_json = {
"intent": "sale",
"payer": {
"payment_method": "paypal"
},
"redirect_urls": {
"return_url": "http://return.url",
"cancel_url": "http://cancel.url"
},
"transactions": [{
"item_list": {
"items": [{
"name": "item",
"sku": "item",
"price": "1.00",
"currency": "USD",
"quantity": 1
}]
},
"amount": {
"currency": "USD",
"total": "1.00"
},
"description": "This is the payment description."
}]
};
Thank you