pinpay_create_payment
Creates a Pay by Link / PINPAY payment. Returns a shareable payment URL and a PIN code. The hosted checkout supports multiple payment methods including Credit Card, Google Pay, and Apple Pay.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| otp | No | One-time payment: "true" makes the link expire after a single payment. | |
| lang | No | Language for the payment page: pt, en, es, fr. Defaults to pt. | |
| amount | Yes | Payment amount in EUR (e.g. 10.50). | |
| accounts | No | Payment methods to show in the gateway, separated by semicolons. Format: METHOD|KEY (e.g. "MBWAY|MBWAY-KEY;MB|MB-KEY;PAYSHOP|PAYSHOP-KEY;CCARD|CCARD-KEY"). Leave blank to use gateway defaults. | |
| order_id | Yes | Unique order identifier in your system (max 15 characters). | |
| error_url | No | URL to redirect the customer if the payment fails. | |
| cancel_url | No | URL to redirect the customer if they cancel. | |
| description | No | Short description shown on the payment page (max 200 characters). | |
| expiry_date | No | Link expiry date in YYYYMMDD format (e.g. 20301231). Leave blank for no expiry. | |
| gateway_key | Yes | ifthenpay Gateway key for Pay by Link / PINPAY. | |
| success_url | No | URL to redirect the customer after a successful payment. | |
| btn_close_url | No | URL for the close/back button on the payment page. | |
| btn_close_label | No | Label text for the close/back button. | |
| selected_method | No | Pre-select a payment method: 1=Multibanco, 2=MB WAY, 3=Payshop, 4=Credit Card, 7=Cofidis Pay, 8=Pix. |