Download the PHP package worldstream-labs/omnipay-paysafecard without Composer
On this page you can find all versions of the php package worldstream-labs/omnipay-paysafecard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download worldstream-labs/omnipay-paysafecard
More information about worldstream-labs/omnipay-paysafecard
Files in worldstream-labs/omnipay-paysafecard
Package omnipay-paysafecard
Short Description Paysafecard driver for the Omnipay payment processing library
License MIT
Informations about the package omnipay-paysafecard
Omnipay: Paysafecard
Paysafecard library for the Omnipay V3 payment library
Installation
Use composer to add the library as dependency for your project
composer require worldstream-labs/omnipay-paysafecard
Development
To set up for development:
composer install
Usage
Setup
Authorizing a payment
This call will return the AuthorizeResponse
object. If the call is succesful then you can redirect the customer to the redirectUrl
. Depending on the result in the next screen the customer will be redirected to the success or failure url.
Capture
Before you can capture the payment, make sure the payment is successfully authorized using the fetchTransaction
call.
Refund
[Optional] You can call validateRefund first. Quoted from Paysafecard: "In order to make sure that the requested refund can continue, the business partner has to precheck the likeliness of the upcoming refund to be successful, there are certain conditions why a refund might be refused"
or refund directly
Tests
Run the unit tests with composer run test
Support
If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
References
Paysafecard REST API docs Omnipay Mollie v3 (similar JSON API) (official package, use as template) Omnipay Paysafecard Rest (Omnipay v2)