Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Payment Gateway Available on Github.io

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.

like image 366
Seth Kitchen Avatar asked Sep 16 '25 18:09

Seth Kitchen


1 Answers

There we go:

  1. Go to paypal.com and log into your account
  2. Open the tab Merchant Tools
  3. On the right side, click on Buy Now buttons
  4. Set your button up on the first tab Step 1: Choose a button type and enter your payment details
  5. Go to the tab Step 2: Track inventory, profit & loss (optional)
  6. Check the first field: Save button at PayPal which will guarantee you this:

    • Protect your buttons from fraudulent changes
    • Automatically add buttons to "My Saved Buttons" in your PayPal profile
    • Easily create similar buttons
    • Edit your buttons with PayPal's tools

which will make the payment process secure.

  1. 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

  2. Click on Create Button

  3. Copy the given code and paste it to your html <body>

  4. 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 :)

like image 109
Virtua Creative Avatar answered Sep 21 '25 11:09

Virtua Creative