payfurl/phpsdk

php SDK to provide a friendly interface to the payFURL API

v2.0.0 2024-05-14 06:51 UTC

This package is auto-updated.

Last update: 2024-05-30 07:05:05 UTC


README

Library for integrating with PayFURL payments in your app. It includes the following APIs:

  1. Charge API
  2. Customer API
  3. PaymentMethod API
  4. Transfer API
  5. Vault API
  6. Token API
  7. Provider API
  8. Batch API

📄 Requirements

Use of the PayFURL PHP SDK requires:

  • PHP 7.4 or higher
  • PHPUnit

Running tests

To run the tests, ensure you have phpunit installed.

Before running the tests, create config.json file in tests folder with the following contents:

{
  "Environment": "Development",
  "SecretKey": "PAYFURL_SECRET_KEY",
  "ProviderId": "DUMMY_PROVIDER_ID",
  "Tokens": ["PAYMENT_TOKEN1","PAYMENT_TOKEN2"]
}

Then run phpunit tests