iFrame
The iFrame integration allows you to display a Payrexx tool within your website. All you need to do is copy the code snippets onto your website.
Some payment methods may not allow the integration in an iFrame due to security issues. These payment methods include PayPal or Coinbase.
PostFinance is disabled in iFrames if the client device disallows 3rd party cookies. This is the standard behaviour for iOS and MacOS clients.
Google Pay will only work with the attribute allow="payment *"
!
Integration
Examples
INSTANCE_NAME - Name of the payment instance
PAYMENT_TEMPLATE_ID - Page ID of a payment Page: Pages Tool
Advanced
The first function to implement where the comment is, could be the
height: Dynamic height of iFrame. So the iFrame has no scroll bar itself. You should not set the param appview if you want a dynamic height!
top: If you have the dynamic height functionality implemented, you probably need to implement the scroll functionality to have the page scrolled if necessary. (e.g. on "Add to cart" button or on "Go to checkout")
transaction: For all the transaction data, like the status, you can receive the transaction object.
closeModal: This contains the redirect URL which you can use to lead the customer to the according page. The IFrame is not allowed to make redirections on your site, therefore you need execute this redirection yourself
Here you go with a full code example:
Last updated