
AmyPay
Supports in this guide: Payments
Provider website: amypay.io
What you need to do for start processing transactions (brief summary)
- Choose account type
- Get your credentials (from AmyPay)
- Connect in Dashboard
- Send an API request
Choose account type
AmyPay is connected via a Provider account - the customer is redirected to an AmyPay-hosted page (or receives payment requisites) to complete the payment.
AmyPay does not currently support payouts through Corefy. If you are not sure which one to use, confirm with your Corefy account manager.
Prerequisites: get from AmyPay
Contact your AmyPay account manager to get your account verified and receive the following credentials:
- Commerce ID -> Corefy field
commerce_id-> your commerce account identifier in AmyPay. - API Key -> Corefy field
api_key. - Secret Key for Callback -> Corefy field
secret_key_callback-> used to verify callback notifications from AmyPay. - API URL (optional) -> Corefy field
api_url-> fill in only if AmyPay gives you a dedicated API endpoint; leave empty otherwise.
Payments processing (connect Provider account, create payment-invoice)
Connect Provider account in Corefy Dashboard
Step 1 - Open connection form
Open AmyPay in the provider directory and press Connect at AmyPay Provider Overview page in the New connection section. Choose Provider account.
Step 2 - Fill in fields and select settings
- Commerce ID ->
commerce_id - API Key ->
api_key - Secret Key for Callback ->
secret_key_callback - API URL (optional) ->
api_url - Send Metadata (optional) ->
send_metadata-> enable to forward themetadataobject from your request to AmyPay - Test Mode ->
test_mode-> (enable if you are using sandbox credentials; cannot be changed after the connection is created) - Currency / Features -> choose values available for your account
The list of available payment methods is loaded from your AmyPay account, so only services enabled for you by AmyPay will appear. AmyPay offers the following payment methods:
- PayID -
AUD - Interac -
CAD - QRIS -
IDR - Virtual Accounts Indonesia -
IDR - Bank Transfer -
MAD,EGP - Mobile Money -
MAD,EGP
Success
You have connected AmyPay Provider account!
First request to Corefy API (MIN)
What it does: creates a payment-invoice; depending on the payment method, the customer is redirected to an AmyPay-hosted page or receives payment requisites to complete the payment.
Payment - MIN
POST /api/payment-invoices
{
"data": {
"type": "payment-invoice",
"attributes": {
"reference_id": "8e3dbbb0-17af-4c9a-bedb-93bdac6900a2",
"service": "qris_idr_hpp",
"currency": "IDR",
"amount": 100000
}
}
}
This connector also supports, for example, indonesia_va_idr_hpp for Virtual Accounts Indonesia. Use the service codes shown for your AmyPay connection in the Dashboard for other methods and currencies.
Payment - MAX
POST /api/payment-invoices
{
"data": {
"type": "payment-invoice",
"attributes": {
"reference_id": "6795502c-e27d-4d07-85e0-93245aab9a3f",
"service": "qris_idr_hpp",
"currency": "IDR",
"amount": 100000,
"description": "Order #12345",
"customer": {
"reference_id": "cus_123",
"name": "John Smith",
"email": "johnsmith@gmail.com",
"phone": "+6281234567890"
},
"metadata": {
"order_id": "12345"
}
}
}
}
customer and description are optional and are passed to AmyPay as-is when present. metadata is forwarded only when Send Metadata is enabled on the connection.
Extended request (MAX)
Why add extra fields (typical reasons): - Provide additional customer details for compliance/reconciliation - Positively influence conversion rate - Include optional fields required by your specific flow
Options
Options are configured on the Corefy side and affect how Corefy builds provider requests or processes responses.
Currently available options (1)
allow_conversion- also makes AmyPay services that use currency conversion available for this connection
allow_conversion
What it does: when loading the list of available services from AmyPay, Corefy by default skips services whose processing currency differs from the connection currency. With this option enabled, such conversion services are also made available. When to use: if AmyPay has enabled conversion services for your account and you want to accept payments in a currency other than the one the method is processed in. Default: "false" Allowed values: true, false
Refunds
AmyPay supports full and partial refunds, including multiple partial refunds against the same payment.
Additional info
- Callback routing is automatic - Corefy generates the callback/return URLs per transaction, nothing to configure in AmyPay's own back-office. Callbacks are verified with the Secret Key for Callback.
- Payment status reconciliation - Corefy can request the current payment status from AmyPay to finalize a payment if a callback is not received.
- No payouts - this connector does not support payouts through Corefy.
FAQ / Troubleshooting
- Invalid credentials / auth error -> verify Commerce ID, API Key, and the Test Mode setting match the environment your AmyPay credentials were issued for
- Payment method or currency is missing in the Dashboard -> services are loaded from your AmyPay account; ask AmyPay to enable the method for you, and check
allow_conversionif it is a conversion service - Callbacks are not accepted -> check that Secret Key for Callback matches the value issued by AmyPay
Question
Still looking for help connecting your AmyPay account? Please contact our support team!