Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Conditional Parameter:

  • If QA or Capture on Shipment is enabled in the campaign then include intent=authorize

    • PayPal SDK will not work with multiple transactions. Do not use Capture on Shipment with both a physical and digital product on the order. Those will be separate transactions.

 

See this link for full details: https://developer.paypal.com/sdk/js/configuration/#link-configureandcustomizeyourintegration

...

  1. onClick (Call the Import Order API to retrieve the create order parameters. It must include paypalSdk = 1 with other required parameters)

    1. It is important that you bind the Import Order call to the PayPal checkout button.

      • Be sure to include the sessionId and orderId from the previous steps, if known

    2. There are PayPal specific requirements that need to be passed to Import Order:

      1. paySource = 'PAYPAL'

      2. paypalBillerId is the value assigned to your PayPal Commerce gateway, found on your gateway list.

      3. prepaidType = PAYPAL_VENMO or PAYPAL_PAYLATER (if PayPal button is clicked then do not send this parameter)

      4. salesUrl = the checkout page full url

  2. createOrder (Create a PayPal order using the parameters received from the “onClick” function)

  3. onApprove (PayPal approved the order. To process the order in CheckoutChamp and complete it in PayPal pass the “orderID” and “payerID” to Confirm PayPal API. It must include paypalSdk = 1)

  4. onCancel (PayPal users canceled the payment or closed the payment screen)

  5. onError (Error from PayPal)

...