var create_payment_json = {
"intent": "sale",
"payer": {
"payment_method": "paypal"
},
"redirect_urls": {
"return_url": "http://localhost:15000/api/ReturnPayment/retornoPayPal?id=" + params.orderNo,
"cancel_url": "http://localhost:15000/api/ReturnPayment/retornoPayPal?id=" + params.orderNo
},
"transactions": [{
"item_list": {
"items": items
},
"amount": {
"currency": "BRL",
"total": total
},
"description": "aaaaaa."
}]
};
When my client closes the order I send this data to PayPal, which returns me a redirect link and a PaymentId
, I use this link to send my client to the PayPal page and make the payment, when he finishes the precise payment of two things.
First: Send the payment response to the link that passes through return_url
.
Second: Redirect my client to the home page of my site.
I can not do the second part, how can I set up to have two return urls or something like that?