PSPark¶
Accept crypto payments from anyone anywhere.
Website: pspark.io
Set up Account Provider account¶
Step 1: Create Provider account¶
To create an account send connection request at the pspark.io → Contact sales or contact manager directly. Submit the required documents to verify your account and gain access.
Step 2: Get required credentials¶
Credentials that have to be issued:
- pspark__api_key → Api key
- pspark--wallet_id → Wallet ID
- pspark__public_key → Public Key
- pspark__private_key → Private Key
Connect Provider Account¶
Step 1. Connect Provider account at the Corefy Dashboard¶
Press Connect at PSPark Provider Overview page in 'New connection' section and choose Provider account option to open Connection form.
Enter credentials:
- Api key
- Wallet ID
- Public Key
- Private Key
Success
You have connected PSPark Provider account!
API examples:¶
Minimum data set to create a payout invoices for blik_pln service¶
PAYOUT
POST /api/commerce/payout-invoices HTTP/1.0
{
"data":{
"type":"payout-invoice",
"attributes":{
"service":"blik_pln",
"commerce_account":"hello_world",
"currency":"PLN",
"amount":20,
"test_mode":false,
"reference_id":"561de38d-37fa-47f1-b6f4-09a621c1fd91",
"fields":[
],
"options":{
"attempts_limit":0,
"split_mode":false,
"allow_partially":false,
"auto_process":false
}
}
}
}
Maximum data set to create a payout invoices for blik_pln service¶
PAYOUT
POST /api/commerce/payout-invoices HTTP/1.0
{
"data":{
"type":"payout-invoice",
"attributes":{
"service":"blik_pln",
"commerce_account":"hello_world",
"currency":"PLN",
"amount":20,
"customer":{
"reference_id":"ORDER123",
"name":"John Wick",
"email":"johnwick@gmail.com",
"phone":"4456456456",
"date_of_birth":"1998-03-03",
"individual_tax_id":"9823456",
"first_name":"John",
"surname":"Wick",
"patronymic":"Stevenson",
"passport_number":"12345",
"passport_series":"PC",
"address":{
"full_address":"United ",
"country":"AD",
"region":"London",
"city":"London",
"street":"Oxsford",
"post_code":"Wqsd11"
}
},
"test_mode":false,
"reference_id":"79332a74-3a38-45dc-a6c7-67ac0255c06f",
"fields":[
],
"options":{
"attempts_limit":0,
"split_mode":false,
"allow_partially":false,
"auto_process":false
}
}
}
}
Constants¶
If some parameters are not sent in the transaction creation request, they will take the values from the set constants.
Here is a list of constants with their corresponding parameters:
- DESCRIPTION → constants [description]
- FIRST_NAME → customer [first_name]
- LAST_NAME → customer [last_name]
- EMAIL → customer [email]
- PHONE → customer [phone]
- FULL_ADDRESS → customer [address] [full_address]
- COUNTRY_CODE → customer [address] [country_code]
- COUNTRY → customer [address] [country]
- CITY → customer [address] [city]
- POST_CODE → customer [address] [post_code]
- REGION → customer [address] [region]
- IP → constant [ip]
- USER_AGENT → constants [user_agent]
Question
"Still looking for help connecting your PSPark account?" Please contact our support team!