xpanse / phpsdk
php SDK to provide a friendly interface to the xpanse API
v2.2.0
2025-05-01 06:56 UTC
Requires
- php: >=7.4
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Library for integrating with xpanse payments in your app. It includes the following APIs:
- Charge API
- Customer API
- PaymentMethod API
- Transfer API
- Vault API
- Token API
- Provider API
- Batch API
- Subscription API
📄 Requirements
Use of the xpanse 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": "XPANSE_SECRET_KEY", "ProviderId": "DUMMY_PROVIDER_ID", "Tokens": ["PAYMENT_TOKEN1","PAYMENT_TOKEN2"] }
Then run phpunit tests