Giter VIP home page Giter VIP logo

php-sumup-payment-gateway-integration's Introduction

PHP-SUMUP-PAYMENT-GATEWAY-INTEGRATION

Integration of Sumup Payment Gateway using PHP.

###Features

  • Sumup Payment gateway integration
  • Creating the Checkout authentication token
  • Completing the Checkout page
  • Eaisly Configurable your credentials

###How to Intregrate Sumup Payment Gateway

  • You need to generate the sumup credentials that will be used during checkout process. Please follow below steps to generate Sumup credentials :

    • Login into sumup official site Sumup Home Page. Click on the login link on Sumup home page and enter your credentials.
    • After Login go to Developer area & Generate the merchant OAuth by filling the "Consent screen" form.
    • After submission of form , They will provide you option to download the credentials.
    • Credential file is a JSON file which contains merchant credentials. File having following informations:
      • {"id":"CCCPV79Q","name":"Hariom","client_id":"iXXX7JWbByXXXXopDOgqIXXXXX","client_secret":"b1f090512aaXXXXXXXXXXXXXXX3e9fb02f1685408dd5b79a1fXXXXXXXXXXXXXX","application_type":"web","redirect_uris":["http://xyz.com/verify_payment.php"],"cors_uris":["http://xyz.com"]}
    • As you see above that credential file having following informations :
      • Client Id
      • Client Secret
      • Redirect Url
      • etc..
  • Client Id, Client Secret , Redirect Url will be used further for implementing the checkout page.

  • Set these credentials into "gateway.php" file Change these credential from the file : const CLIENT_ID = "Client Id"; const CLIENT_SECRET = "Client Secret Key"; const PAYEE_EMAIL = 'merchant email id'; const RETURN_URL = 'http://xyz.com/success.php'; const REDIRECT_URL = "http://xyz.com/verify_payment.php"; const API_TOKEN_URL = "https://api.sumup.com/token"; const API_AUTHORIZE_URL = 'https://api.sumup.com/authorize'; const API_CHECKOUT_URL = 'https://api.sumup.com/v0.1/checkouts';

  • Change the bill number and amount from the generate_bill.php file.

###How to Intall

  • By Cloning the git reporitory
  • Install by Composer composer require hariom/sumup-gateway-integration

###End

php-sumup-payment-gateway-integration's People

Contributors

hariom-kesharwani avatar hariom-kumar-bs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

php-sumup-payment-gateway-integration's Issues

public function createCheckout($data) fails

this is the error message i get
array(3) { ["error_message"]=> string(19) "request_not_allowed" ["error_code"]=> string(9) "FORBIDDEN" ["status_code"]=> int(403) }

public function getAccessToken() still works.
i checked the sumups development environment, not sure why it is failing. Any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.