Skip to content
Docs
Menu
View as Markdown

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.

POSThttps://restapidev.payplus.co.il/api/v1.0/PaymentPages/generateLink

Environment

Headers

stringrequired
API Key
stringrequired
Secret Key

Request body application/json

FieldTypeDescription
itemsobject[]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[].namestringproducts name
items[].pricenumber
items[].valueinteger (int)
items[].barcodestring
items[].quantityinteger (int)
items[].shippingbooleanCan be sent if you would like to show another line of shipping instead a product in the order summary table
items[].vat_typeinteger (int)'vat included' OR 1-'vat not included' OR 2- 'exempt vat'One of: 0, 1, 2
items[].image_urlstringExample: https://www.yourwebsite/product/image/url.jpg
items[].product_uidstringUnique identifier for product
items[].category_uidstringUnique identifier for category
items[].discount_typestring'percentage' OR 'amount'One of: percentage, amount
items[].discount_valuenumber (int)Required if discount type have value
items[].guide_document_urlstringMostly used for invoies to send manual docmentation of a product when customer buying product
items[].product_invoice_extra_detailsstringAdd content for invoice for product variant
amountrequirednumberAmount of the page
customerobject
customer.uidstringTo allocate the payment to specific customer
customer.citystring
customer.emailrequiredstringBy this field we will search for a customer and allocate the payment under the client
customer.phonestring
customer.addressstring
customer.vat_numberstringIn case email are not sent, we will search for a customer by this field
customer.country_isostring
customer.postal_codestring
customer.customer_namerequiredstringImportant in case you working with invoicing company
customer.customer_external_numberstringThis field will be used to pass your external customer id from ERP or other system
paymentsinteger (int)nullable (if sent this will be the amount of installments for the payment)
secure3dobjectnullable 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.idstring
secure3d.phonestring
secure3d.activaterequiredboolean
secure3d.force_challenge_3dsbooleanForce 3DS challenge (always ask the customer for 3DS code)
close_docstringIn case you would like to close document in invoice+ by payment confirmation.
more_infostringnullable (Additional Information)
paying_vatbooleannullable (In case you would like that tax document will be include VAT or not included VAT, This parameter is not required)
cashier_uidstringExample: 9c7d3766-3cce-46a2-8ca3-a50240c35ba2
create_hashstringnullable (Encrypt using Base64 the customer details object in the redirect back to your website and callback)
more_info_2stringnullable (Additional Information)
more_info_3stringnullable (Additional Information)
more_info_4stringnullable (Additional Information)
more_info_5stringnullable (Additional Information)
allowed_binsstring[]In case you would like to proceed just specific BINs in the specific transaction (6 or 8 digits).
create_tokenbooleannullable (In case you have tokenization permission, you can decide if you would like to return the token of the customer for future charges)
allowed_cardsstring[]In case you would like to proceed just specific card brands (ex. ["mastercard","visa"])
charge_methodinteger (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.One of: 0, 1, 2, 3, 4, 5
currency_coderequiredstringCurrency of the page
language_codestring(Transfer the language code that displayed in your page, by default will take the general setting of the page)
refURL_cancelstringnullable (if sent we show "Return To Site" and linked to the url provided instead of payment page settings)
charge_defaultstringOptions: 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.One of: credit-card, bit, paypal, apple-pay, google-pay
refURL_failurestringnullable (if sent we will use it instead of payment page settings)
refURL_successstringnullable (if sent we will use it instead of payment page settings)
show_more_infostringnullable (Show general information of the more_info's on the payment page if they sent)
support_track2booleannullable (Support track2 in payment pages)
allowed_issuersstring[]
expiry_datetimestringnumber, minutes until page expired (if sent we will use it instead of payment page settings)
initial_invoicebooleannullable (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_creditbooleannullable (Option to make credit transaction, number of payments will be minimum 3 and maximum based on payments value)
refURL_callbackstringnullable (if sent we will use it instead of payment page settings)
invoice_languagebooleannullable (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_uidrequiredstringUID of the Payment Page
sendEmailFailurerequiredbooleanSend email for failed transaction
payments_selectedinteger (int)nullable (if sent then the number of the payments will be as selected in the payment page)
sendEmailApprovalrequiredbooleanSend email for successful transaction
recurring_settingsobjectnullable To use this setting recurring payments should be turn on and charge_method value should be 3
recurring_settings.end_datestringWhen the recurring will stop, in case the recurring is unlimited.
recurring_settings.start_daterequiredinteger (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_paymentsrequiredinteger (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_typerequiredinteger (int)(0 - daily, 1- weekly, 2- monthly)One of: 0, 1, 2
recurring_settings.recurring_rangerequiredinteger (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_chargesrequiredinteger (int)How much charges will be in the recurring payments, 0 - Unlimited
recurring_settings.successful_invoicerequiredbooleanIn case invoice company is integrated, initial invoice for every successful payment
recurring_settings.instant_first_paymentrequiredbooleanInitial first payment immediately
recurring_settings.customer_failure_emailrequiredbooleanSend 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_daterequiredbooleanIn case you would like to start the recurring payments on specific day.
recurring_settings.send_customer_success_emailrequiredbooleanSend successful e-mail to customer when charge in placed
custom_invoice_namestringnullable (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_fieldbooleannullable (Option to hide payments field for foreign transactions that acquires are not supported)
add_user_informationbooleanIn case you would like to control the customer details form
customer_failure_smsbooleanIf SMS package purchased the system will notify your customer by SMS
payments_first_amountinteger (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_callbackboolean(In case you would like to receive the callback also in failure transaction)
allowed_charge_methodsstring[]In case you would like to show specific payment methods options in the payment page (ex. ["credit-card","google-pay"])
hide_identification_idbooleannullable (Option to hide identification id field for foreign transactions)
invoice_integration_uidstring
hide_other_charge_methodsbooleanIf 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_smsbooleanIf SMS package purchased the system will notify your customer by SMS
non_voucher_minimum_amountinteger (int)Minimum amount of required payment for Credit Card transactions (Apple Pay, Google Pay, Bit, PayPal)
Edit the request body

Responses

200 200
FieldTypeDescription
dataobject
data.qr_code_imagestringExample: https://restapidev.payplus.co.il/api/payment-pages/payment-request/f33f7a1f-5ea7-4857-992a-2da95b369f53/qr-code
data.page_request_uidstringExample: f33f7a1f-5ea7-4857-992a-2da95b369f53
data.payment_page_linkstringExample: https://paymentsdev.payplus.co.il/f33f7a1f-5ea7-4857-992a-2da95b369f53
resultsobject
results.codeintegerExample: 0
results.statusstringExample: success
results.descriptionstringExample: payment page link is been generated
422 422

No body described.

Was this page helpful?
Ask AI

Ask a question about PayPlus. Answers come from the published docs, with links to the pages they use.

AI answers can be wrong. Check the linked pages.

Your PayPlus accountOpen in a new tab