createPaymentInvoice / create_payment_invoice
createPaymentInvoice / create_payment_invoiceCreates 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 URLpayment_url = api.create_payment_invoice(request)
# Returns: str — the checkout URLString paymentUrl = api.createPaymentInvoice(request);
//// Returns: String — the checkout URL $paymentUrl = $api->createPaymentInvoice($paymentData);
echo 'Checkout URL: ' . $paymentUrl . PHP_EOL;