PayPal Payments Advanced iframe Configuration

DOCS

Last updated: Aug 15th, 7:28am

PayPal Payments Advanced integration uses the embedded iframe template. This hosted solution does not automatically detect mobile devices and requires a configuration setting to display properly on a mobile device.

Use the UI to configure your iframe

To use the PayPal Manager UI to configure your iframe, log into PayPal Manager and configure the required basic setup and optional customization settings.

Setup

The setup section includes selecting the billing and shipping information fields, the payment confirmation page settings, the confirmation email details, security options, and other settings.

  1. Navigate to the Setup page within Hosted Checkout Pages.
  2. Toggle between Live and Test to set configuration settings for each environment.
  3. Choose to show the PayPal logo or not.
  4. Determine the cancel URL and the text of the link the buyer clicks on to cancel the payment on your website. The cancel URL is the page to which PayPal redirects the buyer's browser if the buyer does not approve the payment.
  5. Select the billing and shipping information fields the buyer will be required to complete during checkout.
  6. Choose to display a PayPal hosted payment confirmation page. You can also specify the PayPal hosted confirmation page header and footer text and the URL and text for the return link. Additionally, you can choose to enable the silent post feature.
  7. Opt to send email receipts to the buyer for each successful transaction.
  8. Click Save Changes.

For complete details on these settings, click the Help button on the Setup page. For more information on the Silent Post feature, see Silent Posts.

Customize

The customization section allows you to modify the layout and appearance of your iframe. You can customize the header and payment method section.

  1. Navigate to the Customize page within Hosted Checkout Pages.
  2. Choose Layout C for the iframe.
  3. Click the pencil icon in the top right corner of the iframe displayed.
  4. In the pop-up that appears, edit the font and button color, clicking OK when done.
  5. Preview your changes by clicking Preview.
  6. If you are satisfied with your changes, click Save and Publish. If not, click Cancel to discard all the changes you've made in this session or Undo Changes to discard all changes you've made since the last save.

Use the API to configure your iframe

Another way to configure your hosted checkout pages is to submit iframe configuration parameters in a form POST.

Setup

VariableDescription
CANCELURLThe URL that customers go to if they canceled their transaction. Maximum length: 512 characters.
CSCREQUIREDDetermines if the card security code is required. Values: TRUE or FALSE.
CSCEDITDetermines if the card security code is editable. Values: TRUE or FALSE.
DISABLERECEIPTDetermines if the payment confirmation/order receipt page is a PayPal hosted page. Values: TRUE or FALSE.
EMAILCUSTOMERSend the buyer an email confirmation or not. Default value is FALSE.
ERRORURLThe URL that customers are directed to if an error occurs. Maximum length: 512 characters.
PARMLISTUsed in conjunction with the secure token and takes a string of name-value pairs (NVPs) as its value. The Gateway parses out these NVPs and uses them to run the transaction. This variable is especially useful for merchants that already use this parameter with the Payflow SDK and want to use an existing NVP string.
RETURNURLThe URL that customers are directed to after a transaction completes successfully. Maximum length: 512 characters.
SECURETOKENThe token given from the secure token request. Value: Your token.
SECURETOKENIDThe secure token ID from the secure token request. Value: Your token ID.
SILENTPOSTURLThe URL to which the Gateway will send Silent Post. Maximum length: 512 characters. For more information on the Silent Post feature, see Silent Posts.
SUBTOTALAmount passed to the Gateway. It is displayed in the order summary section. This amount is only for display purposes and is not passed to the transaction servers.
TEMPLATEDenotes the template to use for the hosted solution. Value: minLayout or template-mobile.
VERBOSITYAdditional values returned from the transaction response to the merchant in the Silent Post. By default, there is no verbosity set which means the standard set of values that Silent Post currently uses is returned. Passing in a verbosity will return in the extra values that returned in the transaction response. Value: HIGH.
VERIFYRuns a $0 authorization transaction using the credit card information the buyer enters. If the $0 authorization is verified, then the transaction is immediately run for the amount and transaction type you pass. Values: TRUE or FALSE.
URLMETHODThe technical method used to deliver the CANCELURL. The default is GET and cannot be changed without affecting the installed base, but this value will likely be changed to POST by most carts. Values: POST or GET.

Customize

You can also pass the following optional color and design customizations via API for web solutions. These customizations will not apply to the mobile version. Hex codes used below are for example only.

ItemDescriptionParameter
Section BorderSets the color of the order around the embedded template.pageCollapseBGColor=FFAA11
Sub-header TextSets the color of the words "Pay with PayPal" and "Pay with credit or debit card".pageCollapseTextColor=22FFFF
Button colorSets the color of the text on the PayNow/Submit button.pageButtonTextColor=BB66FF
Text ColorThe color of the text for "card number", "expiration date", etc.labelTextColor=22FFFF

A note on mobile devices

Layout C, the iframe choice, does not automatically redirect mobile users to a mobile optimized flow. The reason is that if PayPal automatically showed a mobile optimized embedded template, within a merchant web page that may not be mobile optimized , this can create unexpected and undesirable results. To display the mobile checkout for Layout C, you must detect the supported mobile browser and then explicitly pass the form POST parameter: TEMPLATE=MOBILE. The images below show what the mobile checkout experience looks like.

Mobile page flow for a PayPal payment

Mobile page flow for a credit card payment

Next

Test your instance of PayPal Payments Advanced

Additional information