Generate Payment Link
The PaymentPages/GenerateLink endpoint allows you to generate a payment link for processing transactions. You can configure options like charge methods, amount, and success/failure callbacks.
POST
https://restapidev.payplus.co.il/api/v1.0/PaymentPages/generateLinkEnvironment
Headers
stringrequired
API Key
stringrequired
Secret Key
Request body
| Field | Type | Description |
|---|---|---|
items | object[] | nullable if send in item "product_uid" we will use this product or send error, if send "name" and not "product_uid" we will create new product with this name. more option to send if ("name" && !product_uid): vat_type, barcode, value,price.last option we will use default product. |
items[].name | string | products name |
items[].price | number | |
items[].value | integer (int) | |
items[].barcode | string | |
items[].quantity | integer (int) | |
items[].shipping | boolean | Can be sent if you would like to show another line of shipping instead a product in the order summary table |
items[].vat_type | integer (int) | 'vat included' OR 1-'vat not included' OR 2- 'exempt vat' |
items[].image_url | string | Example: https://www.yourwebsite/product/image/url.jpg |
items[].product_uid | string | Unique identifier for product |
items[].category_uid | string | Unique identifier for category |
items[].discount_type | string | 'percentage' OR 'amount' |
items[].discount_value | number (int) | Required if discount type have value |
items[].guide_document_url | string | Mostly used for invoies to send manual docmentation of a product when customer buying product |
items[].product_invoice_extra_details | string | Add content for invoice for product variant |
amountrequired | number | Amount of the page |
customer | object | |
customer.uid | string | To allocate the payment to specific customer |
customer.city | string | |
customer.emailrequired | string | By this field we will search for a customer and allocate the payment under the client |
customer.phone | string | |
customer.address | string | |
customer.vat_number | string | In case email are not sent, we will search for a customer by this field |
customer.country_iso | string | |
customer.postal_code | string | |
customer.customer_namerequired | string | Important in case you working with invoicing company |
customer.customer_external_number | string | This field will be used to pass your external customer id from ERP or other system |
payments | integer (int) | nullable (if sent this will be the amount of installments for the payment) |
secure3d | object | nullable To use default settings of the customer don't send this object, or if you would like to active or disable for this specific transaction |
secure3d.id | string | |
secure3d.phone | string | |
secure3d.activaterequired | boolean | |
secure3d.force_challenge_3ds | boolean | Force 3DS challenge (always ask the customer for 3DS code) |
close_doc | string | In case you would like to close document in invoice+ by payment confirmation. |
more_info | string | nullable (Additional Information) |
paying_vat | boolean | nullable (In case you would like that tax document will be include VAT or not included VAT, This parameter is not required) |
cashier_uid | string | |
create_hash | string | nullable (Encrypt using Base64 the customer details object in the redirect back to your website and callback) |
more_info_2 | string | nullable (Additional Information) |
more_info_3 | string | nullable (Additional Information) |
more_info_4 | string | nullable (Additional Information) |
more_info_5 | string | nullable (Additional Information) |
allowed_bins | string[] | In case you would like to proceed just specific BINs in the specific transaction (6 or 8 digits). |
create_token | boolean | nullable (In case you have tokenization permission, you can decide if you would like to return the token of the customer for future charges) |
allowed_cards | string[] | In case you would like to proceed just specific card brands (ex. ["mastercard","visa"]) |
charge_method | integer (int) | 0 - Check (J2) 1 - Charge (J4) 2 - Approval (J5) 3 - Recurring Payments 4 - Refund (J4) 5 - Token (J2) * If not set, default value - what is set in the payment page settings. |
currency_coderequired | string | Currency of the page |
language_code | string | (Transfer the language code that displayed in your page, by default will take the general setting of the page) |
refURL_cancel | string | nullable (if sent we show "Return To Site" and linked to the url provided instead of payment page settings) |
charge_default | string | Options: credit-card, bit, multipass, paypal, praxell, valuecard, verifone. If your payment page includes multiple options, you can select which tab will be opened by default when the user lands on the payment page. |
refURL_failure | string | nullable (if sent we will use it instead of payment page settings) |
refURL_success | string | nullable (if sent we will use it instead of payment page settings) |
show_more_info | string | nullable (Show general information of the more_info's on the payment page if they sent) |
support_track2 | boolean | nullable (Support track2 in payment pages) |
allowed_issuers | string[] | |
expiry_datetime | string | number, minutes until page expired (if sent we will use it instead of payment page settings) |
initial_invoice | boolean | nullable (In case you have invoice company and it's activated in your payment page, you can decide if for spesfic transaction invoice will be initial or not, to use default please don't send this parameter at all) |
payments_credit | boolean | nullable (Option to make credit transaction, number of payments will be minimum 3 and maximum based on payments value) |
refURL_callback | string | nullable (if sent we will use it instead of payment page settings) |
invoice_language | boolean | nullable (In this field you can send the language of the invoice you would like us to send to your invoice company. In case this field will not be sent, language will be default setting) |
payment_page_uidrequired | string | UID of the Payment Page |
sendEmailFailurerequired | boolean | Send email for failed transaction |
payments_selected | integer (int) | nullable (if sent then the number of the payments will be as selected in the payment page) |
sendEmailApprovalrequired | boolean | Send email for successful transaction |
recurring_settings | object | nullable To use this setting recurring payments should be turn on and charge_method value should be 3 |
recurring_settings.end_date | string | When the recurring will stop, in case the recurring is unlimited. |
recurring_settings.start_daterequired | integer (int) | In case the above parameter is set to false, you have to choose the start date of the recurring payments on specific day of the month for example 15th. In case the date is higher then the choosen day, the system will create for next month. |
recurring_settings.jump_paymentsrequired | integer (int) | Give free X days. If you would like to give one month free, then you can use 30 in this field and the system will give 30 days free till first charge. |
recurring_settings.recurring_typerequired | integer (int) | (0 - daily, 1- weekly, 2- monthly) |
recurring_settings.recurring_rangerequired | integer (int) | What is the range of the payment, for example, is choosed in type monthly and in the range 1, then charge will be once a month. if range is 2, then every 2 months. |
recurring_settings.number_of_chargesrequired | integer (int) | How much charges will be in the recurring payments, 0 - Unlimited |
recurring_settings.successful_invoicerequired | boolean | In case invoice company is integrated, initial invoice for every successful payment |
recurring_settings.instant_first_paymentrequired | boolean | Initial first payment immediately |
recurring_settings.customer_failure_emailrequired | boolean | Send e-mail to the customer for failure payment and inform him to contact the business to update payment details |
recurring_settings.start_date_on_payment_daterequired | boolean | In case you would like to start the recurring payments on specific day. |
recurring_settings.send_customer_success_emailrequired | boolean | Send successful e-mail to customer when charge in placed |
custom_invoice_name | string | nullable (In case you have integrated invoice company you can decide if the invoice customer name will be different then the "customer_name" parameter in customer object) |
hide_payments_field | boolean | nullable (Option to hide payments field for foreign transactions that acquires are not supported) |
add_user_information | boolean | In case you would like to control the customer details form |
customer_failure_sms | boolean | If SMS package purchased the system will notify your customer by SMS |
payments_first_amount | integer (int) | nullable (Works only if sending "payments_selected" and payplus will calculated other installments. First installment amount can be changed due to other payments) |
send_failure_callback | boolean | (In case you would like to receive the callback also in failure transaction) |
allowed_charge_methods | string[] | In case you would like to show specific payment methods options in the payment page (ex. ["credit-card","google-pay"]) |
hide_identification_id | boolean | nullable (Option to hide identification id field for foreign transactions) |
invoice_integration_uid | string | |
hide_other_charge_methods | boolean | If you have multiple payment methods in your page with this option you will be able to hide other payment methods and manage the selection in your website |
send_customer_success_sms | boolean | If SMS package purchased the system will notify your customer by SMS |
non_voucher_minimum_amount | integer (int) | Minimum amount of required payment for Credit Card transactions (Apple Pay, Google Pay, Bit, PayPal) |
Edit the request body
Responses
200 200
| Field | Type | Description |
|---|---|---|
data | object | |
data.qr_code_image | string | |
data.page_request_uid | string | |
data.payment_page_link | string | |
results | object | |
results.code | integer | |
results.status | string | |
results.description | string |