SDKs
Language Examples
Use the same payment creation shape across JavaScript, PHP, Python, and Laravel examples.
JavaScript
await client.payments.create({
amount: { amount: 5000, currency: "NGN" },
customer: { email: "[email protected]" },
paymentMethod: "hosted_checkout"
});PHP
$client->payments->create([
"amount" => ["amount" => 5000, "currency" => "NGN"],
"customer" => ["email" => "[email protected]"],
"paymentMethod" => "hosted_checkout"
]);Python
client.payments.create(
amount={"amount": 5000, "currency": "NGN"},
customer={"email": "[email protected]"},
payment_method="hosted_checkout"
)Laravel
OasisPay::payments()->create([
"amount" => ["amount" => 5000, "currency" => "NGN"],
"customer" => ["email" => "[email protected]"],
"paymentMethod" => "hosted_checkout"
]);