I want to accept payments on my github.io site. I am wondering what payment gateway APIs are compatible. I made a paypal business buy button that worked, but I don't receive back a confirmation to my site that it was accepted.
The special part about this question is github.io doesn't allow dynamic scripts.
There we go:
Merchant Tools
Buy Now buttons
Step 1: Choose a button type and enter your payment details
Step 2: Track inventory, profit & loss (optional)
Check the first field: Save button at PayPal
which will guarantee you this:
which will make the payment process secure.
Go to the tab Step 3: Customize advanced features (optional)
Here you'll be able to add a custom "sucess" checkout page - check this option and add the url to your "thanks" page:
Take customers to this URL when they finish checkout
Here you'll be able to add a custom "failed" checkout page - check this option and add the url to your "cancelled" page:
Take customers to this URL when they cancel their checkout
Click on Create Button
Copy the given code and paste it to your html <body>
Add this to the page <head>
:
<script async src="https://www.paypalobjects.com/js/external/paypal-button.min.js" type="text/javascript"></script>
Create a new html and paste all the code given by PayPal, you'll be able to see the button locally (running bundle exec jekyll serve
) and test it with PayPal Sandbox. You can do everything via PayPal Sandbox to test it on GitHub (or anywhere else): create an account, choose currencies, create buttons, and so on. To do that, create a sandbox account here and log into it here.
When everything get to work as it should, you can do the same via http://paypal.com and replace just the button code with your real button code.
Hope to have helped! Let me know if you need something else :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With