Download the PHP package youcanpay/payment-sdk without Composer

On this page you can find all versions of the php package youcanpay/payment-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package payment-sdk

Tests Total Downloads Latest Version License

This package allows the developer to interact easily with the YouCan Pay API.

This documentation is separated in two integrations: Default Integration and the Standalone Integration. you have the choice to do one integration or both integrations in your checkout page.

YouCan Pay SDK Setup

Instructions for adding the YouCan Pay SDK to your PHP Applications.

Step 1. Requirements

Step 2. Add YouCan Pay SDK

Open your PHP project, add the following.

Step 2.1 YouCan Pay: Default Integration

The following is a quick guide to get up and started with YouCan Pay JS integration, you can view the full documentation by following this link.

You can make payments directly on your site, with the possibility of choosing the position in the DOM.

If you choose to use JS integration, you must have an SSL certificate to run in production mode.

2.1.1: Copy this JS script between <head>...</head>

2.1.2: Choose where you want to display payment information (Full Name, Card Numbers, CCV...), must be placed between the <body>...</body> tags.

2.1.3: Add this code just before the end of the ...</body> tag.

2.1.4: Tokenization step: this token contains all the order information.

2.5: Retrieve the token you created with the SDK createToken() and insert it into the JS script, this token which contains all the information concerning this payment.

When the buyer clicks on the Pay button. the JS code below runs, and you receive a GET response in successUrl or errorUrl you defined in the tokenization step.

Step 2.2 YouCan Pay: Standalone Integration

2.2.1: Tokenization step: this token contains all the order information.

2.2.2: After the tokenization retrieve the link created with createPaymentURL() function and integrate it in your DOM or redirect the buyer directly to this URL.


All versions of payment-sdk with dependencies

PHP Build Version
Package Version
Requires ext-curl Version *
nesbot/carbon Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package youcanpay/payment-sdk contains the following files

Loading the files please wait ....