Methods

createPaymentInvoice / create_payment_invoice

Creates a payment invoice for a customer and returns a payment URL to redirect the customer to complete the payment.

const paymentUrl = await client.createPaymentInvoice(paymentData);
// Returns: Promise<string> — the checkout URL
payment_url = api.create_payment_invoice(request)
# Returns: str — the checkout URL
String paymentUrl = api.createPaymentInvoice(request);
//// Returns: String — the checkout URL
    $paymentUrl = $api->createPaymentInvoice($paymentData);
    echo 'Checkout URL: ' . $paymentUrl . PHP_EOL;