I'm developping a web application on which I allow the users to buy a ticket for an event. I used the Paypal Rest API
for sending money and purchasing the tickets.Everything is working just fine. Now I'm trying to use the refund method to refund all users related to an event when this event will be cancelled. Looking in the REST API documentation I found that there is a way to refund but when I search in the REST API package for laravel
I haven't found how to refund or use the refund method. Does rest-api-sdk-php
doesn't support the refund method? And if yes how to use it in laravel project?
PS: the payment are done without a credit card.I use just the paypal acount with sandbox.
--edit-- I get this result when trying the refund code of the rest api:
{"name":"TRANSACTION_REFUSED","message":"The request was refused.{0}","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#TRANSACTION_REFUSED","debug_id":"97f33dd89f4c8"}