---
updatedAt: 2026-05-25T02:06:00.000Z
agentTools:
  projectIndex: https://checkout-docs.transfi.com/llms.txt
---

# 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.

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