Edit

Configure express payments for PayPal

This article describes how to configure express payments for PayPal to enable faster checkout capabilities in Microsoft Dynamics 365 Commerce.

Key terms

Term Description
PayPal Wallet The customer experience and integration that the PayPal connector supports. It's also known as the PayPal button.
Wallet A payment type that doesn't include traditional payment characteristics, such as the Bank Identification Number (BIN) range and expiration date, which are used to differentiate credit and debit card types.
Payment express A Commerce module that supports faster checkout behavior when supported payment methods are used. This article covers use of the payment express module with PayPal.

Dynamics 365 Commerce offers an out-of-box integration for PayPal Wallet. When you configure the Dynamics 365 Payment Connector for PayPal, the PayPal button appears as a selectable payment method during online order checkout. When users select PayPal, they complete their payment directly through PayPal and are then returned to the online storefront to complete their order. By using PayPal cart checkout, customers can use their payment account information to prefill the checkout form, so that they can complete the checkout process more quickly.

Commerce added a payment express module to facilitate express checkouts. You can use the payment express module in a fragment that you can include on a checkout or cart page. When you configure PayPal, both the payment express option and the regular checkout option use the same Dynamics 365 Payment Connector for PayPal connector reference.

PayPal checkout in Commerce

Prerequisites

Set up the PayPal Wallet for your environment as described in Dynamics 365 Payment Connector for PayPal.

If you're using PayPal as an option in the regular checkout flow (where users manually enter their account information without using the payment express prefill actions), follow the setup instructions in Payment module.

Payment express module with PayPal

The payment express module works with supporting payment methods to offer site customers the option to check out more quickly by prefilling their payment service account information during the checkout process. The payment express module uses the configured payment connector to prefill the checkout form with user account details such as the address, contact information, and selected payment method.

When users use PayPal express checkout and select the PayPal button in the payment express section of the checkout page, the process opens a PayPal payment iFrame window. The user signs in to their PayPal account to use their account's shipping address, billing address, email address, and PayPal payment method of choice to pay for the transaction.

After the user completes the action in the PayPal window, they're directed back to the Commerce site checkout page, where the checkout form is prefilled with their selected details. In the payment express flow, the first delivery option that's available for the shipping address that is returned is prefilled for the user. The user then has the option to review the order and change checkout order details before they select Place order to finalize the order.

Add the payment express module with PayPal to a fragment

To add the payment express module with PayPal to a fragment in Commerce site builder, follow these steps:

  1. Go to your site.
  2. In the left navigation pane, select Fragments, and then select New.
  3. In the New Fragment dialog box, find and select the Payment express module. Under Fragment name, enter a name for the fragment (for example, Express checkout).
  4. Select OK to create the fragment.
  5. In the outline view, select the slot of the payment express module that you created.
  6. In the properties pane, select Heading.
  7. In the Heading dialog box, in the Heading text field, enter the heading text that you want to show for the express checkout section of your site (for example, Express checkout).
  8. Under Heading level, select the heading level (for example, H2).
  9. Select OK.
  10. In the properties pane, in the Height of the iFrame field, enter or adjust the height of the iFrame element (for example, 60).
  11. In the Supported tender types field, enter PayPal.
  12. Select Save, select Finish editing to check in the fragment, and then select Publish to publish it.

Add the payment express fragment to the checkout page

To add the payment express fragment to the checkout page in site builder, follow these steps:

  1. Go to your site.

  2. In the left navigation pane, select Pages, and then select your site's checkout page.

  3. Select Edit to edit the page.

  4. In the Main slot, select the ellipsis (...), and then select Add Module.

  5. In the Select modules dialog box, select the Container module, and then select OK.

    Note

    If a container module that contains a checkout fragment already exists, move the payment express section so that it appears above the existing checkout container in the Main slot. The payment express section is rendered above the normal checkout container. To move a container module up or down, select the ellipsis (...), and then select Move up or Move down.

  6. In the Container properties pane, configure the property settings in the following way:

    • Container Layout – Select Stacked.
    • Width – Select Fill container.
    • Children Shown – Select Three.
  7. In the Container slot, select the ellipsis (...), and then select Add Fragment.

  8. In the Select a fragment dialog box, find and select the express payment fragment that you created, and then select OK.

  9. Select Save, select Finish editing to check in the page, and then select Publish to publish it.

Add the payment express fragment to the cart page

To add the payment express fragment to the cart page in site builder, follow these steps:

  1. Go to your site.
  2. In the left navigation pane, select Pages, and then select your site's cart page.
  3. Select Edit to edit the page.
  4. In the Main slot, find the container that contains the Cart module. The Cart module contains a Payment express slot.
  5. Select the Payment Express slot, select the ellipsis (...), and then select Add Module.
  6. In the Select modules dialog box, select the Payment express module, and then select OK.
  7. In the properties pane, in the Supported tender types field, enter Paypal.
  8. Select Save, select Finish editing to check in the page, and then select Publish to publish it.

Modes of delivery

When you configure the payment express module to use PayPal, it prepopulates the first delivery option that the system returns for the shipping address you selected for the PayPal account. Users can change the shipping address if they want.

You configure the order of the mode of delivery in the Modes of delivery section for the channel in Commerce headquarters. For more information, see Set up modes of delivery.

The checkout module also uses the delivery options module when it renders modes of delivery during checkout. For more information, see Delivery options module.

You add modes of delivery to the list for the online store in Commerce headquarters. Go to Retail and Commerce > Channels > Online stores, and select the channel ID for your store. Then select Setup > Modes of delivery. The module modes of delivery that are shown in the configuration appear in a similar manner on the site. To add or remove modes of delivery for a retail channel or product, select Manage modes of delivery on the Action Pane.

Additional resources

Payments FAQ

Checkout module

Payment module

Set up modes of delivery

Delivery options module