Test sending money from your PawaPay merchant account directly to customer mobile wallets.
The SDK automatically structures your metadata and standardizes the correspondent vs provider differences between V1 and V2.
import asyncio
from pawapay_sdk import ApiClient
# 1. Initialize Client
config = {
'api_token': , # Use Your Own Sandbox Account Token
'environment': 'sandbox',
'api_version': # toggle v1/v2
}
client = ApiClient(config)
# 2. Define Recipient & Metadata
amount = # update as you wish
currency = # see `SDK Config` below
recipient_msisdn = # see `Open Docs` below
provider = # see `SDK Config` below
# update these in your build
metadata = [
{"fieldName": "orderId", "fieldValue": "ORD-998877"},
{"fieldName": "reason", "fieldValue": "Playground Payout"}
]
# 3. Dispatch (async)
response = await client.initiate_payout(
amount=amount,
currency=currency,
recipient_msisdn=recipient_msisdn,
provider=provider,
metadata=metadata
)
print(f"Payout Status: {response.status}")