Search code examples
laravelpaypalstripe-paymentsbraintree

How to Implement credit card and paypal transactions like fiverr in laravel


I want to integrate transactions like in fiverr or upwork in my laravel website. I have tried braintree but that only helps in checkouts. I want to store the payments in my application and then send them to a bank account or paypal when the work is done just like fiverr or upwork


Solution

  • Your requirement is to perform the transaction (send the payment to a bank/paypal) and create a records for your system, that the particular transaction happend, isn't it ? If it's the case, if you are to use Paypal, the best possible way is to read the paymentID and payerID from the session when the transaction is complete (using the payment gateway) and locally (in your application) perform an insert query to your table with the data been extracted with any other system specific additional details you may need to add to you record. If you use the following, https://github.com/net-shell/laravel-paypal you can easily modify the getDone() for this insertion.