Skip to content

Logo

Aspay

Set up Account Provider account

Step 1: Create Provider account

To create an account send connection request at the [email protected] 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:

  • api_key → API Key
  • private_key → Private Key

Connect Provider Account

Step 1. Connect Provider account at the Corefy Dashboard

Press Connect at Aspay Provider Overview page in 'New connection' section and choose Provider account option to open Connection form.

Connect

Enter credentials:

  • API key
  • Private key

Success

You have connected Aspay Provider account!

API examples:

Minimum data set to create a payment invoices for payment_card_try_hpp service

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"payment_card_try_hpp",
      "commerce_account":"Hello_World",
      "currency":"TRY",
      "amount":100,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"f103d8f1-f2b6-447f-a7fd-960a9e46a713",
        "email":"[email protected]",
        "individual_tax_id":"48570756934"
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"7be889b3-ef86-4cd3-b02c-ea01aad2b73b",
      "service_fields":[
      ]
    }
  }
}

Maximum data set to create a payment invoices for payment_card_try_hpp service

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"payment_card_try_hpp",
      "commerce_account":"Hello_World",
      "currency":"TRY",
      "amount":100,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"dd1b0d54-ada1-40a1-9d18-b8d8e899b65e",
        "name":"John Doe",
        "email":"[email protected]",
        "phone":"+90787623423",
        "individual_tax_id":"48570756934"
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"9f998e58-bbc9-40a5-b589-72d9cb7df76d",
      "service_fields":[
      ]
    }
  }
}

Minimum data set to create a payout invoices for ... service

PAYOUT

POST /api/commerce/payout-invoices HTTP/1.0
{
  "data":{
    "type":"payout-invoice",
    "attributes":{
      "service":"bank_transfer_try",
      "commerce_account":"Hello_World",
      "currency":"TRY",
      "amount":12,
      "customer":{
        "reference_id":"96f044ce-6a26-43b0-bf40-1ab2cb47b87d",
        "individual_tax_id":"48570756934"
      },
      "test_mode":false,
      "reference_id":"1d052439-d817-4207-b2bb-4fa25b616967",
      "fields":{
        "account_number":"TR100000000000000000000000",
        "beneficiary_full_name":"ADA ELEZ"
      },
      "options":{
        "attempts_limit":0,
        "split_mode":false,
        "allow_partially":false,
        "auto_process":false
      }
    }
  }
}

Maximum data set to create a payout invoices for ... service

PAYOUT

POST /api/commerce/payout-invoices HTTP/1.0
{
  "data":{
    "type":"payout-invoice",
    "attributes":{
      "service":"bank_transfer_try",
      "commerce_account":"Hello_World",
      "currency":"TRY",
      "amount":12,
      "customer":{
        "reference_id":"3254797a-4fc6-44e5-8a5f-bbbd30188f18",
        "individual_tax_id":"48570756934",
        "phone":"90123456789"
      },
      "test_mode":false,
      "reference_id":"aa86e9e6-373d-45f8-9cbf-a0c83e43282c",
      "fields":{
        "account_number":"TR100000000000000000000000",
        "beneficiary_full_name":"ADA ELEZ"
      },
      "options":{
        "attempts_limit":0,
        "split_mode":false,
        "allow_partially":false,
        "auto_process":false
      }
    }
  }
}

Question

"Still looking for help connecting your Aspay account?" Please contact our support team!