Payment method using Python Flask and Paypal
Budget: $10 – $30 USD
I have a website built using Flask. In the header bar, there is a page called "payme". In this page There is a form that accepts a number and there is a submit button for this form called "pay here".
Below this button, there is a Paypal button to execute the payment. What I want is the following:
1. Instead of having 2 buttons on this page (one for the form "pay me", and one for the payment "Paypal checkout"), I want to have only 1 button.
2. The button should do 2 actions. First, it should take the amount from the form and then do the payment
Now, the amount is fixed which is 500.00 (you can see it under main > routes.py). Instead of 500.00 I want to get the amount from the form then do the payment
Currently the paypal button works fine. If you need to test it, you need to create a paypal developer account and add your api-key and api-secret to the code (not needed). I just want the above 2 steps
Below this button, there is a Paypal button to execute the payment. What I want is the following:
1. Instead of having 2 buttons on this page (one for the form "pay me", and one for the payment "Paypal checkout"), I want to have only 1 button.
2. The button should do 2 actions. First, it should take the amount from the form and then do the payment
Now, the amount is fixed which is 500.00 (you can see it under main > routes.py). Instead of 500.00 I want to get the amount from the form then do the payment
Currently the paypal button works fine. If you need to test it, you need to create a paypal developer account and add your api-key and api-secret to the code (not needed). I just want the above 2 steps