PayPal
You can start by placing a ‘PayPal’ button next to other payment methods you process in your webshop. With clicking on this button, you construct a Sale (or PreAuth) transaction request to our Gateway. This will take your customers to our hosted payment page, where PayPal JS Smart Buttons are rendered. After being redirected to the wallet login page, the cardholders can proceed with payment completion.
Alternatively, you can let your customer select the payment method on the Gateway’s hosted payment method selection page. If you prefer this option, please do not submit a value for the payment method parameter in your payment request.
In addition to mandatory fields, it is also recommended to include PayPal specific fields, as listed below.
Field Name | Type* | Description |
---|---|---|
checkoutoption | M | Set the value for this parameter to combinedpage |
customParam_client-meta-id | C | The purpose of this parameter is to pass the session information to PayPal to correlate your payment request with the corresponding call submitted to the PayPal Risk Services. Example: <input type="hidden" name="customParam_client-meta-id" value="123456"/> String, Limit of 32 characters. |
customParam_stc-content | C | This parameter will provide content for the PayPal Set Transaction Context (STC) with sufficient data for the PayPal Risk Services analysis before the transaction is authorized. Example: <input type="hidden" name="customParam_stc-content" value="{"name":"jan", "id":"1234"}"/> In addition to 'customParam_stc-content' consider also a need to submit a specific risk tracking id ('customParam_client-meta-id') in your request. |
item1 - item999 | O | The line items are regular Connect integration key-value parameters (URL-encoded) that allow you to send basket information in the following format: id;description;quantity;item_total_price;sub_total;vat_tax;shipping As part of a line item, you can also submit your VAT and shipping cost (as a delivery/shipping fee). Example: <book>;<The Hobbit>;\<1>;\<4.50>;\<2.92>;\<0.58>;\<1.00> |
invoicenumber | C | Represents PayPal invoice ID, the field must be populated if available during request submission. This value will be visible in your PayPal seller account while reviewing a transaction. |
paymentMethod | O | Optional parameter, you can submit a value ‘paypal’ directly. If you do not submit this parameter, the Gateway will display a Hosted Payment Page to choose from all the payment methods activated for your store. |
sname | O | Ship-to Name Alphanumeric characters, spaces, and dashes limited to 96 |
saddr1 | O | Shipping City Limit of 96 characters, including spaces |
scountry | O | Country of Shipping Address 2 letter country code in the ISO alpha code format (e.g.: DE) |
szip | O | Zip or Postal Code Limit of 24 characters, including spaces |
shippingPreference | O | Use this parameter to indicate the way you would like to handle your customer's shipping address. Available values: • SET_PROVIDED_ADDRESS : Customer can see the address details inside the wallet but cannot change it. The address details are provided as part of the Gateway response.• NO_SHIPPING : Customer cannot see the address details inside the wallet nor can change it. No address details are provided as part of the Gateway response. |
txntype | M | Supported transaction types: • 'sale’ • 'preauth’ • ‘void’ • 'postauth’ |
*(M)=Mandatory (O)=Optional (C)=Conditional
Updated 23 days ago