You are already using the SmartForm embedded form
If you have already integrated card payment (CB/VISA/MASTERCARD) in smartForm embedded mode using the class="kr-smart-form", then the PayPal payment method will be displayed directly in the buyer’s journey.
In order to highlight this payment method and customize the way it is displayed, see the step: Highlighting a payment method.
If you have opted for the merchant protection program, you must transmit the shopping cart’s content, the buyer and the shipping details when creating the formToken. See the use cases.
Three additional fields must be transmitted:
Field name | Description |
customer.shoppingCart.shippingAmount | Shipping fees for the entire order. The amount is expressed in the fraction currency unit. E.g.: 4525 for EUR 45.25 |
customer.shoppingCart.taxAmount | Tax amount for the entire order. The amount is expressed in the fraction currency unit. E.g.: 4525 for EUR 45.25 |
customer.shoppingCart.insuranceAmount | Insurance amount for the entire order. The amount is expressed in the fraction currency unit. E.g.: 4525 for EUR 45.25 |
The value of the amount field must correspond to the total amount of the order:
amount = Total ( cartItemInfo.productQty x cartItemInfo.productAmount ) + shippingAmount + taxAmount + insuranceAmount.