Skip to content
paysafecard sample codes for the REST API in PHP. Payment, Payout, Refund
Branch: master
Clone or download
berbac-psc Correction of error message
The error 3001 had a wrong error message
Latest commit 21e9695 Dec 5, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
payment Correction of error message Dec 5, 2017
payout Merge pull request #5 from PHPGangsta/fix_jsondb_params Feb 20, 2017
refund Fixed spelling mistakes Feb 17, 2017 Create Sep 26, 2016 changed the readme Feb 20, 2017


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 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: DE:


How to integrate paysafecards API:

  1. Register for a business account.
  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

Authentication key

You can get your testing key after the registration for a business account:

Payout & Refund

Not per default active. Special agreement with paysafecard necessary. Please talk before the implementation with the paysafecard sales team.

You can’t perform that action at this time.