Form Submit with PayPal Payment Button
-
I am writing a small one-page application that will allow someone to submit a club membership application, and also submit a PayPal payment at the same time.
I have been looking at the PayPal payment options, but I also need the Quasar Form field data to be sent in an email each time someone joins and pays.
Does anyone have a tutorial or information on how to combine a button with the ability to send an email and send payment to PayPal? Thanks!
-
start here:
https://developer.paypal.com/docs/business/checkout/configure-payments/single-page-app/#vue
https://github.com/paypal/paypal-checkout-componentsbtw sending emails cannot be done by Quasar.
-
@cynderkromi Dobbel pointed you in the right direction here. You’ll need to first perform the payment in the browser via paypal. Once paypal responds that it accepted a payment, it will return a payment / transaction id, which you then submit to your own server that in turn sends you an email. I assume you will manually check that you indeed have a payment in paypal at this point before issuing membership, else you’d have to also verify the payment on your server. Just keep in mind if you don’t verify, some script kiddie could submit membership applications without paying, but I wouldn’t worry about that unless you have the dev resources to do server side checking, because it’s probably not a problem unless you’re a high target.