# paysafecard
paysafecard - a global market leader in online prepaid payment methods, is available in 43 countries at over 500,000 sales outlets and can be used in thousands of online shops worldwide. 
By using a 16-digit paysafecard PIN, customers can pay quickly, simply and safely online. 
paysafecard is the perfect solution for customers who value their data security or simply don’t have a credit card.

# paysafecard-php
paysafecard sample codes for the REST API in PHP. Payment, Payout, Refund

You can find the full documentation and payment flow of the paysafecard APIs here
EN: https://www.paysafecard.com/fileadmin/api/
DE: https://www.paysafecard.com/fileadmin/api/de.html

# Installation
You can either install the REST API by manually downloading it or using Composer:
```bash
composer require paysafecard/paysafecard-rest_api-php
```

# Integration
How to integrate paysafecards API:
1. Register for a business account. https://servicecenter.paysafecard.com/merchant-center/webToLead/WebToLeadForm.xhtml
2. Use the API key you get in the service center in the sample codes. 
3. Download and configure the sample codes.
4. Make the service center integration test.

# Payment API classes & examples
For detailed information have a look into the examples provided for several coding languages. 
Basic usage is provided within the languages README.md.

# Authentication key
You can get your testing key after the registration for a business account:
https://www.paysafecard.com/business/

# Payout & Refund
Not per default active. Special agreement with paysafecard necessary. 
Please talk before the implementation with the paysafecard sales team. success@paysafecard.com
 
