Skip to main content

AstroPay

Quick Start
  1. Sign up at astropay.com and obtain API credentials
  2. Create a terminal in the Admin Console with the parameters below
  3. Start processing — the adapter is pre-built and ready to use

Go to AstroPay →

Overview

AstroPay payment integration

Provider IDastropay
CategoryLocal Payment Methods
Websiteastropay.com

Authentication

  • Method: HMAC Signature

Configuration

Required Parameters

ParameterDescription
api_keyAPI Key
api_secretAPI Secret
merchant_idMerchant ID
secret_keySecret Key

Example Configuration

{
"provider": "astropay",
"provider_params": {
"api_key": "your_api_key_here",
"api_secret": "your_api_secret_here",
"merchant_id": "your_merchant_id_here",
"secret_key": "your_secret_key_here"
}
}

Status Mapping

Provider Status4pay StatusDescription
CREATEDaction_required
APPROVEDcharged
COMPLETEDcharged
PENDINGcharging
PROCESSINGcharging
REFUNDEDrefunded
REJECTEDrejected
CANCELLEDrejected
EXPIREDrejected

API Reference

MethodEndpointDescription
POSTapi/v2/deposit
GETapi/v2/deposit/#{deposit_id}/status
POSTapi/v2/deposit/#{deposit_id}/cashout

Resources