<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.barion.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hargitan</id>
	<title>Barion Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.barion.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hargitan"/>
	<link rel="alternate" type="text/html" href="https://docs.barion.com/Special:Contributions/Hargitan"/>
	<updated>2026-11-21T18:11:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://docs.barion.com/index.php?title=Google_Pay&amp;diff=3004</id>
		<title>Google Pay</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Google_Pay&amp;diff=3004"/>
		<updated>2021-03-18T14:45:30Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Implementing the Google Pay button */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=Google Pay integration}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Google Pay™ is a payment option for the customer. Google securely stores the customer&#039;s card information and hands it over to the merchant for processing. The process ensures that the card information stays secure and encrypted, the merchant does not know the details of the card.&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=NOTE|text=We currently only support Google Pay for the web, android support is coming soon.|color=#1993c7}}&lt;br /&gt;
&lt;br /&gt;
= Payment Process =&lt;br /&gt;
This picture describes the payment process:&lt;br /&gt;
&lt;br /&gt;
[[File:Googlepay.png]]&lt;br /&gt;
&lt;br /&gt;
# The customer clicks the Google Pay button. A window will pop up where the customer can choose a previously saved card to charge or even provide a new one. &lt;br /&gt;
# The JS code receives the encrypted card information.&lt;br /&gt;
# The JS code send the encrypted information to the merchant&#039;s server side&lt;br /&gt;
# The merchant&#039;s server side gathers all the information to start a payment and calls the Barion API&lt;br /&gt;
# The Barion API handles the request, decrypts the packages and charges the card. The result of the payment is sent back to the caller.&lt;br /&gt;
# The merchant&#039;s server communicates the result to the client side and the webshop renders the result of the payment.&lt;br /&gt;
&lt;br /&gt;
= Integration =&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=IMPORTANT|text=To integrate this feature you have to develop the integration yourself! You need to understand Javascript code and is is also required to modify your webshop&#039;s server code!|color=#FF7A3D}}&lt;br /&gt;
&lt;br /&gt;
These are the steps that you have to complete to use Google Pay on your website:&lt;br /&gt;
&lt;br /&gt;
# [[#Creating_a_shop_in_Barion | Register a wallet in Barion and create a shop]]&lt;br /&gt;
# [[#Implementing_the_Google_Pay_button|Implement the Google Pay button on your webshop&#039;s client side]]&lt;br /&gt;
# [[#Implementing_the_Barion_API_call|Implement the Barion API call on your webshop&#039;s server side]]&lt;br /&gt;
&lt;br /&gt;
== Creating a shop in Barion ==&lt;br /&gt;
&lt;br /&gt;
To be able to use Barion as a Google Pay token processor you have to register a wallet and open a shop for your webshop.&lt;br /&gt;
* You must [[Creating_an_account|register a Barion wallet]] at the Barion website or in the Sandbox environment. Learn more about the Sandbox environment [[Sandbox|here]].&lt;br /&gt;
* For this wallet you have to [[Creating_a_shop|create a shop]] which should be approved by Barion.&lt;br /&gt;
* For every currency you plan to conduct payments in you have to make sure there is an account created in your Barion wallet. This means that if you plan to have USD payments then there should be an USD account created in your wallet.&lt;br /&gt;
* To make sure every corner case scenario works for your webshop it is best to topup that account with a small amount (approx. 5-10EUR or your choice of currency around the same value).&lt;br /&gt;
&lt;br /&gt;
== Implementing the Google Pay button ==&lt;br /&gt;
&lt;br /&gt;
First read through the: &lt;br /&gt;
# [https://developers.google.com/pay/api/web/overview Introduction] &lt;br /&gt;
# [https://developers.google.com/pay/api/web/guides/test-and-deploy/integration-checklist Integration checklist] &lt;br /&gt;
# [https://developers.google.com/pay/api/web/guides/brand-guidelines Brand guidelines] &lt;br /&gt;
&lt;br /&gt;
in Google&#039;s documentation to see what you need to do to accept payments via Google Pay. If your system is ready, follow [https://developers.google.com/pay/api/web/guides/tutorial this Google tutorial] to create the JS code that renders the Google Pay button.&lt;br /&gt;
&lt;br /&gt;
To identify the request towards Google you have to provide two IDs:&lt;br /&gt;
* &#039;&#039;&#039;gateway id&#039;&#039;&#039;, the ID that identifies the gateway you are using to process the charges. This is &amp;lt;code&amp;gt;barion&amp;lt;/code&amp;gt; &lt;br /&gt;
* &#039;&#039;&#039;the gateway merchant id&#039;&#039;&#039;, the ID that identifies your webshop. This can be copied from the detail page of your shop (in Barion) &amp;lt;br/&amp;gt; [[File:Merchantid.png]]&lt;br /&gt;
&lt;br /&gt;
These IDs must be set in your JS code, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
const tokenizationSpecification = {&lt;br /&gt;
  type: &#039;PAYMENT_GATEWAY&#039;,&lt;br /&gt;
  parameters: {&lt;br /&gt;
    &#039;gateway&#039;: &#039;barion&#039;,&lt;br /&gt;
    &#039;gatewayMerchantId&#039;: &#039;PUT HERE YOUR SHOPS MERCHANT ID FROM BARION&#039;&lt;br /&gt;
  }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We support four card types: American Express, Discover, MasterCard and Visa. You have to specify this in your JS code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
const allowedCardNetworks = [&amp;quot;AMEX&amp;quot;, &amp;quot;DISCOVER&amp;quot;, &amp;quot;MASTERCARD&amp;quot;, &amp;quot;VISA&amp;quot;];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, we only support cards that already been authenticated with 3DS or via ID&amp;amp;V as network tokens, so you have to specify this as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
const allowedCardAuthMethods = [&amp;quot;CRYPTOGRAM_3DS&amp;quot;, &amp;quot;PAN_ONLY&amp;quot;];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The system needs the billing address, for this the following parameterization must be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
parameters: {&lt;br /&gt;
     billingAddressRequired: true,&lt;br /&gt;
     billingAddressParameters: {&lt;br /&gt;
         format: &amp;quot;FULL&amp;quot;&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Please use the FULL value to specify the format. See [https://developers.google.com/pay/api/web/reference/request-objects#BillingAddressParameters BillingAddressParameters] for more information. &lt;br /&gt;
&lt;br /&gt;
To be able to get the e-mail address of the customer, please specify the &amp;lt;code&amp;gt;&amp;quot;emailRequired&amp;quot;: true&amp;lt;/code&amp;gt; in the [https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataRequest PaymentDataRequest]. This will the Google API to send back the e-mail address of the Google wallet in the [https://developers.google.com/pay/api/web/reference/response-objects#PaymentData PaymentData] object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make sure to comply with the [https://developers.google.com/pay/api/web/guides/brand-guidelines Google Brand Guidelines] when you place the pay button on your webshop.&lt;br /&gt;
&lt;br /&gt;
=== Performing 3DS authentication ===&lt;br /&gt;
&lt;br /&gt;
Barion is performing 3DS authentication on all transaction. In case of Google Pay, merchants need to implement our &lt;br /&gt;
[https://docs.barion.com/Token_payment_3D_Secure#Off-site_3DS_v2_authentication Off-site 3DS authentication] process by using the described css and javascript files in the code of their site.&lt;br /&gt;
&lt;br /&gt;
== Implementing the Barion API call ==&lt;br /&gt;
&lt;br /&gt;
To be able to pass on the encrypted token to Barion you have to implement a Barion API call. For the technical communication guide please read the this: [[Calling_the_API|Calling the API]].&lt;br /&gt;
&lt;br /&gt;
The endpoint you have to implement is the [[Payment-StartPaymentWithGoogleToken-v3|v3/payment/startpaymentwithgoogletoken]]. The data that you have to provide here has three key elements:&lt;br /&gt;
* all the information about the goods you want to sell&lt;br /&gt;
* the e-mail address of the customer (provided by Google)&lt;br /&gt;
* the Google Pay token (provided by Google)&lt;br /&gt;
&lt;br /&gt;
=== Possible error responses ===&lt;br /&gt;
&lt;br /&gt;
The endpoint can result in any error described [https://docs.barion.com/Responsive_web_payment#Processing_the_error_response at the web payment scenario]. Besides those these are the specific error messages for this scenario&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| InvalidGoogleToken || The token provided was invalid. Either &lt;br /&gt;
* malformed &lt;br /&gt;
* or contained invalid structure&lt;br /&gt;
|-&lt;br /&gt;
| InvalidGoogleMessage || The content of the token was invalid. Either &lt;br /&gt;
* contained data that was not recognized&lt;br /&gt;
* or the message was expired&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Google_Pay&amp;diff=3003</id>
		<title>Google Pay</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Google_Pay&amp;diff=3003"/>
		<updated>2021-03-18T14:26:35Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Implementing the Google Pay button */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=Google Pay integration}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Google Pay™ is a payment option for the customer. Google securely stores the customer&#039;s card information and hands it over to the merchant for processing. The process ensures that the card information stays secure and encrypted, the merchant does not know the details of the card.&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=NOTE|text=We currently only support Google Pay for the web, android support is coming soon.|color=#1993c7}}&lt;br /&gt;
&lt;br /&gt;
= Payment Process =&lt;br /&gt;
This picture describes the payment process:&lt;br /&gt;
&lt;br /&gt;
[[File:Googlepay.png]]&lt;br /&gt;
&lt;br /&gt;
# The customer clicks the Google Pay button. A window will pop up where the customer can choose a previously saved card to charge or even provide a new one. &lt;br /&gt;
# The JS code receives the encrypted card information.&lt;br /&gt;
# The JS code send the encrypted information to the merchant&#039;s server side&lt;br /&gt;
# The merchant&#039;s server side gathers all the information to start a payment and calls the Barion API&lt;br /&gt;
# The Barion API handles the request, decrypts the packages and charges the card. The result of the payment is sent back to the caller.&lt;br /&gt;
# The merchant&#039;s server communicates the result to the client side and the webshop renders the result of the payment.&lt;br /&gt;
&lt;br /&gt;
= Integration =&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=IMPORTANT|text=To integrate this feature you have to develop the integration yourself! You need to understand Javascript code and is is also required to modify your webshop&#039;s server code!|color=#FF7A3D}}&lt;br /&gt;
&lt;br /&gt;
These are the steps that you have to complete to use Google Pay on your website:&lt;br /&gt;
&lt;br /&gt;
# [[#Creating_a_shop_in_Barion | Register a wallet in Barion and create a shop]]&lt;br /&gt;
# [[#Implementing_the_Google_Pay_button|Implement the Google Pay button on your webshop&#039;s client side]]&lt;br /&gt;
# [[#Implementing_the_Barion_API_call|Implement the Barion API call on your webshop&#039;s server side]]&lt;br /&gt;
&lt;br /&gt;
== Creating a shop in Barion ==&lt;br /&gt;
&lt;br /&gt;
To be able to use Barion as a Google Pay token processor you have to register a wallet and open a shop for your webshop.&lt;br /&gt;
* You must [[Creating_an_account|register a Barion wallet]] at the Barion website or in the Sandbox environment. Learn more about the Sandbox environment [[Sandbox|here]].&lt;br /&gt;
* For this wallet you have to [[Creating_a_shop|create a shop]] which should be approved by Barion.&lt;br /&gt;
* For every currency you plan to conduct payments in you have to make sure there is an account created in your Barion wallet. This means that if you plan to have USD payments then there should be an USD account created in your wallet.&lt;br /&gt;
* To make sure every corner case scenario works for your webshop it is best to topup that account with a small amount (approx. 5-10EUR or your choice of currency around the same value).&lt;br /&gt;
&lt;br /&gt;
== Implementing the Google Pay button ==&lt;br /&gt;
&lt;br /&gt;
First read through the: &lt;br /&gt;
# [https://developers.google.com/pay/api/web/overview Introduction] &lt;br /&gt;
# [https://developers.google.com/pay/api/web/guides/test-and-deploy/integration-checklist Integration checklist] &lt;br /&gt;
# [https://developers.google.com/pay/api/web/guides/brand-guidelines Brand guidelines] &lt;br /&gt;
&lt;br /&gt;
in Google&#039;s documentation to see what you need to do to accept payments via Google Pay. If your system is ready, follow [https://developers.google.com/pay/api/web/guides/tutorial this Google tutorial] to create the JS code that renders the Google Pay button.&lt;br /&gt;
&lt;br /&gt;
To identify the request towards Google you have to provide two IDs:&lt;br /&gt;
* &#039;&#039;&#039;gateway id&#039;&#039;&#039;, the ID that identifies the gateway you are using to process the charges. This is &amp;lt;code&amp;gt;barion&amp;lt;/code&amp;gt; &lt;br /&gt;
* &#039;&#039;&#039;the gateway merchant id&#039;&#039;&#039;, the ID that identifies your webshop. This can be copied from the detail page of your shop (in Barion) &amp;lt;br/&amp;gt; [[File:Merchantid.png]]&lt;br /&gt;
&lt;br /&gt;
These IDs must be set in your JS code, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
const tokenizationSpecification = {&lt;br /&gt;
  type: &#039;PAYMENT_GATEWAY&#039;,&lt;br /&gt;
  parameters: {&lt;br /&gt;
    &#039;gateway&#039;: &#039;barion&#039;,&lt;br /&gt;
    &#039;gatewayMerchantId&#039;: &#039;PUT HERE YOUR SHOPS MERCHANT ID FROM BARION&#039;&lt;br /&gt;
  }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We support four card types: American Express, Discover, MasterCard and Visa. You have to specify this in your JS code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
const allowedCardNetworks = [&amp;quot;AMEX&amp;quot;, &amp;quot;DISCOVER&amp;quot;, &amp;quot;MASTERCARD&amp;quot;, &amp;quot;VISA&amp;quot;];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, we only support cards that already been authenticated with 3DS or via ID&amp;amp;V as network tokens, so you have to specify this as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
const allowedCardAuthMethods = [&amp;quot;CRYPTOGRAM_3DS&amp;quot;, &amp;quot;PAN_ONLY&amp;quot;];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The system needs the billing address, for this the following parameterization must be used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&#039;line&#039;&amp;gt;&lt;br /&gt;
parameters: {&lt;br /&gt;
     billingAddressRequired: true,&lt;br /&gt;
     billingAddressParameters: {&lt;br /&gt;
         format: &amp;quot;FULL&amp;quot;&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Please use the FULL value to specify the format. See [https://developers.google.com/pay/api/web/reference/request-objects#BillingAddressParameters BillingAddressParameters] for more information. &lt;br /&gt;
&lt;br /&gt;
To be able to get the e-mail address of the customer, please specify the &amp;lt;code&amp;gt;&amp;quot;emailRequired&amp;quot;: true&amp;lt;/code&amp;gt; in the [https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataRequest PaymentDataRequest]. This will the Google API to send back the e-mail address of the Google wallet in the [https://developers.google.com/pay/api/web/reference/response-objects#PaymentData PaymentData] object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make sure to comply with the [https://developers.google.com/pay/api/web/guides/brand-guidelines Google Brand Guidelines] when you place the pay button on your webshop.&lt;br /&gt;
&lt;br /&gt;
== Implementing the Barion API call ==&lt;br /&gt;
&lt;br /&gt;
To be able to pass on the encrypted token to Barion you have to implement a Barion API call. For the technical communication guide please read the this: [[Calling_the_API|Calling the API]].&lt;br /&gt;
&lt;br /&gt;
The endpoint you have to implement is the [[Payment-StartPaymentWithGoogleToken-v3|v3/payment/startpaymentwithgoogletoken]]. The data that you have to provide here has three key elements:&lt;br /&gt;
* all the information about the goods you want to sell&lt;br /&gt;
* the e-mail address of the customer (provided by Google)&lt;br /&gt;
* the Google Pay token (provided by Google)&lt;br /&gt;
&lt;br /&gt;
=== Possible error responses ===&lt;br /&gt;
&lt;br /&gt;
The endpoint can result in any error described [https://docs.barion.com/Responsive_web_payment#Processing_the_error_response at the web payment scenario]. Besides those these are the specific error messages for this scenario&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| InvalidGoogleToken || The token provided was invalid. Either &lt;br /&gt;
* malformed &lt;br /&gt;
* or contained invalid structure&lt;br /&gt;
|-&lt;br /&gt;
| InvalidGoogleMessage || The content of the token was invalid. Either &lt;br /&gt;
* contained data that was not recognized&lt;br /&gt;
* or the message was expired&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2993</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2993"/>
		<updated>2021-03-02T09:34:02Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Error messages and actions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Add Barion logo to your Shop&#039;s footer ====&lt;br /&gt;
&lt;br /&gt;
# [https://download.barion.com/barion/barion-smart-payment-banners.zip Get the Barion logo in multiple formats]&lt;br /&gt;
# [https://community.shopify.com/c/Shopify-Design/Adding-image-in-Supply-theme-Footer/td-p/352036 Insert them as image into your Shopify footer]&lt;br /&gt;
&lt;br /&gt;
==== Add Barion Pixel to your Shop&#039;s header ====&lt;br /&gt;
&lt;br /&gt;
# [https://docs.barion.com/Getting_started_with_the_Barion_Pixel Getting started with the Pixel]&lt;br /&gt;
# [https://support.pixelunion.net/hc/en-us/articles/360047807193-Adding-app-code-to-the-head-tag-in-your-theme-liquid Adding code into your Shopify shop&#039;s theme]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], &lt;br /&gt;
# [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
# Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. &lt;br /&gt;
# Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and &lt;br /&gt;
# Set the option of &amp;quot;Orders&amp;quot; to &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding a payment method on Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
= TROUBLESHOOTING =&lt;br /&gt;
&lt;br /&gt;
== Error messages and actions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The store is closed in the Barion system, payment is not allowed.&#039;&#039;&#039;&lt;br /&gt;
In this case your Barion Shop is not &#039;&#039;&#039;approved&#039;&#039;&#039; yet. If the POSKey you used is for the right shop, you have to wait until it is approved.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application not installed&#039;&#039;&#039;&lt;br /&gt;
# The javascript code you pasted from here to the Shopify Checkout settings / Additional scripts field is most likely wrong. Keep in mind that the script is a bit different for the test/sandbox and for production.&lt;br /&gt;
# Order API rights were not set to read/write for the private app&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2992</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2992"/>
		<updated>2021-03-02T09:31:16Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* How to create Shopify keys */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Add Barion logo to your Shop&#039;s footer ====&lt;br /&gt;
&lt;br /&gt;
# [https://download.barion.com/barion/barion-smart-payment-banners.zip Get the Barion logo in multiple formats]&lt;br /&gt;
# [https://community.shopify.com/c/Shopify-Design/Adding-image-in-Supply-theme-Footer/td-p/352036 Insert them as image into your Shopify footer]&lt;br /&gt;
&lt;br /&gt;
==== Add Barion Pixel to your Shop&#039;s header ====&lt;br /&gt;
&lt;br /&gt;
# [https://docs.barion.com/Getting_started_with_the_Barion_Pixel Getting started with the Pixel]&lt;br /&gt;
# [https://support.pixelunion.net/hc/en-us/articles/360047807193-Adding-app-code-to-the-head-tag-in-your-theme-liquid Adding code into your Shopify shop&#039;s theme]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], &lt;br /&gt;
# [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
# Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. &lt;br /&gt;
# Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and &lt;br /&gt;
# Set the option of &amp;quot;Orders&amp;quot; to &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding a payment method on Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
= TROUBLESHOOTING =&lt;br /&gt;
&lt;br /&gt;
== Error messages and actions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The store is closed in the Barion system, payment is not allowed.&#039;&#039;&#039;&lt;br /&gt;
In this case your Barion Shop is not &#039;&#039;&#039;approved&#039;&#039;&#039; yet. If the POSKey you used is for the right shop, you have to wait until it is approved.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application not installed&#039;&#039;&#039;&lt;br /&gt;
The javascript code you pasted from here to the Shopify Checkout settings / Additional scripts field is most likely wrong. Keep in mind that the script is a bit different for the test/sandbox and for production.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2911</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2911"/>
		<updated>2021-01-20T14:24:58Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Add Barion logo to your Shop&#039;s footer ====&lt;br /&gt;
&lt;br /&gt;
# [https://download.barion.com/barion/barion-smart-payment-banners.zip Get the Barion logo in multiple formats]&lt;br /&gt;
# [https://community.shopify.com/c/Shopify-Design/Adding-image-in-Supply-theme-Footer/td-p/352036 Insert them as image into your Shopify footer]&lt;br /&gt;
&lt;br /&gt;
==== Add Barion Pixel to your Shop&#039;s header ====&lt;br /&gt;
&lt;br /&gt;
# [https://docs.barion.com/Getting_started_with_the_Barion_Pixel Getting started with the Pixel]&lt;br /&gt;
# [https://support.pixelunion.net/hc/en-us/articles/360047807193-Adding-app-code-to-the-head-tag-in-your-theme-liquid Adding code into your Shopify shop&#039;s theme]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], &lt;br /&gt;
# [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding a payment method on Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
= TROUBLESHOOTING =&lt;br /&gt;
&lt;br /&gt;
== Error messages and actions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The store is closed in the Barion system, payment is not allowed.&#039;&#039;&#039;&lt;br /&gt;
In this case your Barion Shop is not &#039;&#039;&#039;approved&#039;&#039;&#039; yet. If the POSKey you used is for the right shop, you have to wait until it is approved.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application not installed&#039;&#039;&#039;&lt;br /&gt;
The javascript code you pasted from here to the Shopify Checkout settings / Additional scripts field is most likely wrong. Keep in mind that the script is a bit different for the test/sandbox and for production.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=3DS_FAQ&amp;diff=2898</id>
		<title>3DS FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=3DS_FAQ&amp;diff=2898"/>
		<updated>2021-01-05T10:35:04Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: Created page with &amp;quot;SCA FAQ:  We will collect the frequently asked questions about the SCA / 3DS&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SCA FAQ:&lt;br /&gt;
&lt;br /&gt;
We will collect the frequently asked questions about the SCA / 3DS&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Token_payment_upgrade_to_3DS&amp;diff=2896</id>
		<title>Token payment upgrade to 3DS</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Token_payment_upgrade_to_3DS&amp;diff=2896"/>
		<updated>2020-12-14T22:45:14Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* What happens if the merchant doesn&amp;#039;t upgrade its implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=Upgrading token payment implementation to comply with 3DS}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=NOTE|text=This tutorial was created to help merchants that already have token payment integration with Barion. First, please read through the detailed description of the new [[Token_payment_3D_Secure|token payment with 3DS]]!|color=#1993c7}}&lt;br /&gt;
= Background =&lt;br /&gt;
[[Token_payment|Token payment]] is a solution that enables the merchant to charge the payer without the presence of them. It is a powerful tool to conduct subscription-like or payer-not-present scenarios. This scenario requires the merchant to create a token that would act as an identifier for the payer&#039;s funding source. To attach that token to a valid funding source the merchant had to do several things:&lt;br /&gt;
# Create an alphanumeric token&lt;br /&gt;
# Conduct an initial payment in which this token gets registered in the Barion system &lt;br /&gt;
# Refer to this token in a subsequent payment attempt&lt;br /&gt;
&lt;br /&gt;
[[File:Recurring-pre3ds.png|1280px]]&lt;br /&gt;
&lt;br /&gt;
This meant that as far as this token referenced a valid (and still available) funding source the merchant could create payments without any limitations. Basically, this token symbolized the funding source. It was up to the merchant to decide what it is used for, neither Barion nor the card issuer was aware of the nature of the subsequent payments. &lt;br /&gt;
&lt;br /&gt;
This funding source can be either a card or an e-money wallet and this is up to the payer to choose. In case the payer chooses to fund the payment from their e-money wallet there is no further need for extra security. On the other hand, when it comes to card payment the authentication process changed with the new Strong Customer Authentication directive and the 3DS v2 protocol.&lt;br /&gt;
&lt;br /&gt;
= Changes =&lt;br /&gt;
To make sure that the payer has more control over these token scenarios and the card issuer knows more about the payment scenarios several things need to be changed. &lt;br /&gt;
&lt;br /&gt;
== Token payment scenarios ==&lt;br /&gt;
&lt;br /&gt;
First of all the merchant has to decide what kind of token payment scenario is suitable. These scenarios are the following:&lt;br /&gt;
* &#039;&#039;&#039;One-click payment&#039;&#039;&#039;: The payer clicks on the &amp;quot;Purchase&amp;quot; button but the charge happens in the background without the payer leaving the merchant&#039;s site.&lt;br /&gt;
* &#039;&#039;&#039;Recurring payment&#039;&#039;&#039;: The payer authorizes the merchant (at the initial payment) to charge their card periodically without being present.&lt;br /&gt;
* &#039;&#039;&#039;Merchant initiated payment&#039;&#039;&#039;: The payer authorizes the merchant to charge their card without restrictions.&lt;br /&gt;
&lt;br /&gt;
To decide on a suitable scenario, please [[Token_payment_3D_Secure#Token_payment_scenarios|read this detailed description]]&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=CHANGE|text=The intended scenario must be specified in the new [[RecurrenceType|ReccurenceType]] property (located in the [[Payment-Start-v2|Payment/Start]] request)|color=#20c400}}&lt;br /&gt;
&lt;br /&gt;
== Usage of TraceId ==&lt;br /&gt;
&lt;br /&gt;
3DS authentication requires another identifier. This new identifier is used to differentiate these token payment scenarios and help the issuer control what is a non-fraudulent transaction.&lt;br /&gt;
&lt;br /&gt;
So from now on, there will be two IDs for every payer-not-present scenario:&lt;br /&gt;
* &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; for the funding source: this identifies the source of the money (could be card or wallet)&lt;br /&gt;
* &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; (new) for the &#039;&#039;nature of the charge:&#039;&#039; this identifies the type of token payment scenario the merchant is conducting.&lt;br /&gt;
&lt;br /&gt;
This new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is generated and stored by the card issuer. The Id is available in the [[Payment-GetPaymentState-v2|GetPaymentState]] response once the charge is successfully completed.&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=CHANGE|text=The TraceId must processed from the [[Payment-GetPaymentState-v2|GetPaymentState]] response and must be attached to the payment in merchant&#039;s system. |color=#20c400}}&lt;br /&gt;
&lt;br /&gt;
Once the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is acquired it must be sent in the [[Payment-Start-v2|Payment/Start]] request to identify the scenario. This is crucial for the card transactions otherwise they could be declined. &lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=CHANGE|text=The TraceId must specified in the [[Payment-Start-v2|Payment/Start]] for the subsequent token charges. |color=#20c400}}&lt;br /&gt;
&lt;br /&gt;
== 3DS v2 authentication ==&lt;br /&gt;
&lt;br /&gt;
The new more secure 3DS v2 authentication must be conducted for every online card payment. These token payment scenarios also need to use these new secure way of authentication. &lt;br /&gt;
The initial payment must be authenticated every time although the subsequent payments may be exempted in certain cases. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Technical changes required =&lt;br /&gt;
The technical changes depend on what type of token scenario is needed for the business. It is important to notice that these scenarios can be implemented beside each other, a merchant is not required to choose only one type of token payment. The main goal is to appropriately use each scenario.&lt;br /&gt;
&lt;br /&gt;
== Technical changes for Recurring payments ==&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039; For the token registration&#039;&#039;&#039; in the [[Payment-Start-v2|Payment/Start]] request the new properties have to be specified:&lt;br /&gt;
#* &amp;lt;code&amp;gt;&amp;quot;RecurrenceType&amp;quot; : &amp;quot;RecurringPayment&amp;quot;&amp;lt;/code&amp;gt; to indicate the scenario&lt;br /&gt;
#* &amp;lt;code&amp;gt;PurchaseInformation.RecurringExpiry&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PurchaseInformation.RecurringFrequency&amp;lt;/code&amp;gt; for the limitations &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
#Once the callback is received get the response of [[Payment-GetPaymentState-v2|GetPaymentState]]. In case the charge was successful, there will be a &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; property for the payment. The value of it must be saved and attached to the payment.  &lt;br /&gt;
#&#039;&#039;&#039;For subsequent payments&#039;&#039;&#039; in the [[Payment-Start-v2|Payment/Start]] request specify the &lt;br /&gt;
#* &amp;lt;code&amp;gt;&amp;quot;RecurrenceType&amp;quot; : &amp;quot;RecurringPayment&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
#* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; you received for the initial payment.&lt;br /&gt;
&lt;br /&gt;
== Technical changes for Merchant initiated payments ==&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039; For the token registration&#039;&#039;&#039; in the [[Payment-Start-v2|Payment/Start]] request the new property has to be specified:&lt;br /&gt;
#* &amp;lt;code&amp;gt;&amp;quot;RecurrenceType&amp;quot; : &amp;quot;MerchantInitiatedPayment&amp;quot;&amp;lt;/code&amp;gt; to indicate the scenario&lt;br /&gt;
#Once the callback is received get the response of [[Payment-GetPaymentState-v2|GetPaymentState]]. In case the charge was successful, there will be a &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; property for the payment. The value of it must be saved and attached to the payment.  &lt;br /&gt;
#&#039;&#039;&#039;For subsequent payments&#039;&#039;&#039; in the [[Payment-Start-v2|Payment/Start]] request specify the &lt;br /&gt;
#* &amp;lt;code&amp;gt;&amp;quot;RecurrenceType&amp;quot; : &amp;quot;MerchantInitiatedPayment&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
#* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; you received for the initial payment.&lt;br /&gt;
&lt;br /&gt;
== Technical changes for One-click payments ==&lt;br /&gt;
&lt;br /&gt;
This modification needs the most attention since the merchant has to implement client-side functionality and add a new step at the end of the flow.&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039; For the token registration&#039;&#039;&#039; in the [[Payment-Start-v2|Payment/Start]] request the new property has to be specified:&lt;br /&gt;
#* &amp;lt;code&amp;gt;&amp;quot;RecurrenceType&amp;quot; : &amp;quot;OneClickPayment&amp;quot;&amp;lt;/code&amp;gt; to indicate the scenario&lt;br /&gt;
#&#039;&#039;&#039;For subsequent payments&#039;&#039;&#039; the merchant has to integrate the barion.offsitegw.js to be able to authenticate the payer via 3DS v2 on the merchant&#039;s site. To do this read the tutorial on [[Token_payment_3D_Secure#OneClick payment|how to integrate this]].&lt;br /&gt;
# After a successful authentication a new Barion API endpoint ([[Payment-Complete-v2|/Payment/Complete]]) must be called to finalize the process and charge the card&lt;br /&gt;
&lt;br /&gt;
Please notice that in case this scenario is used there is no need to use the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; since the 3DS authentication will be performed every time.&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=CHANGE|text=In case of one-click token scenario the merchant has to authenticate every card payment with 3DS v2|color=#20c400}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== What happens if the merchant doesn&#039;t upgrade its implementation ==&lt;br /&gt;
&lt;br /&gt;
There will be a two-phase ramp-up period to make sure that integrations can be upgraded.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Until December 31, 2020&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In this period the integrations that are not up-to-date and are not capable to handle 3DS v2 transactions &#039;&#039;&#039;will work&#039;&#039;&#039;. &lt;br /&gt;
* New tokens can be initiated (without RecurrenceType and TraceId) and the 3DSv2 authentication will be performed by the Barion Smart Gateway.&lt;br /&gt;
* Subsequent payments can use existing tokens (RecurrenceId) without specifying the TraceId.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Between January 1 and January 31, 2021 &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In this period the integrations that are not up-to-date and are not capable to handle 3DS v2 transactions &#039;&#039;&#039;will work&#039;&#039;&#039;. However, to comply with the card scheme mandates Barion has to substitute the missing information.&lt;br /&gt;
* New tokens can be initiated (without RecurrenceType and TraceId) and the 3DSv2 authentication will be performed by the Barion Smart Gateway. The payment will be marked as an initial MIT transaction. The MerchantInitiatedPayment RecurrenceType will be used as a fallback.&lt;br /&gt;
* Subsequent payments can use existing tokens (RecurrenceId) without specifying the TraceId. They will be handled as the subsequent MIT payment of the initial transaction. The TraceId will be filled in by Barion.&lt;br /&gt;
* This period allows all merchants to finish upgrading their integrations, receive TraceIds during subsequent payments, and send it back with the next subsequent payment, so Barion doesn&#039;t have to substitute it with a static value anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;From February 1, 2021&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Until this date, all integrations must be upgraded. &lt;br /&gt;
* New tokens can only be initiated with the appropriate 3DSv2 information (RecurrenceType set). Otherwise, the payment/start will result in a validation error.&lt;br /&gt;
* Subsequent payments can use existing tokens (RecurrenceId) without specifying the TraceId. They will be handled as the subsequent MIT payment of the initial transaction. The TraceId will be filled in by Barion. This can be used until the card schemes allow this kind of TraceId substitution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=SUPPORT|text=In case you have difficulties with the upgrade please contact our developers at devsupport@barion.com |color=#1993c7}}&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=ShippingAddress&amp;diff=2883</id>
		<title>ShippingAddress</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=ShippingAddress&amp;diff=2883"/>
		<updated>2020-12-01T10:03:48Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Property list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Shipping address structure =&lt;br /&gt;
&lt;br /&gt;
This structure represents a shipping address related to a payment. The data provided here is used to analyze and avoid possible fraud attempts.&lt;br /&gt;
&lt;br /&gt;
== API usage == &lt;br /&gt;
&lt;br /&gt;
This structure is used by the following API endpoints:&lt;br /&gt;
* [[Payment-Start-v2]]&lt;br /&gt;
&lt;br /&gt;
== Property list ==&lt;br /&gt;
&lt;br /&gt;
{{api_input_table_header}}&lt;br /&gt;
|-&lt;br /&gt;
| Country || string || &lt;br /&gt;
* Required &lt;br /&gt;
* Exactly 2 characters&lt;br /&gt;
|| The payer&#039;s country code in ISO-3166-1 format. E.g. HU or DE. If you cannot provide the shipping address, send &amp;lt;code&amp;gt;ZZ&amp;lt;/code&amp;gt; as the country code. &lt;br /&gt;
|-&lt;br /&gt;
| City || string || &lt;br /&gt;
* Optional, required if region is specified&lt;br /&gt;
* Maximum 50 characters&lt;br /&gt;
|| The complete name of the city of the recipient address. &lt;br /&gt;
|-&lt;br /&gt;
| Region || string or &#039;&#039;&#039;null&#039;&#039;&#039; || &lt;br /&gt;
* Optional &lt;br /&gt;
* Exactly 2 characters&lt;br /&gt;
|| The country subdivision code (state or county) of the recipient address in ISO-3166-2 format. For example in case of Hungary, use the [https://en.wikipedia.org/wiki/ISO_3166-2:HU Wikipedia example] after the HU-&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; if this does not apply to the given country, send a &#039;&#039;&#039;null&#039;&#039;&#039; value or do not send this property at all.&lt;br /&gt;
|-&lt;br /&gt;
| Zip || string || &lt;br /&gt;
* Optional &lt;br /&gt;
* Maximum 16 characters&lt;br /&gt;
|| The zip code of the recipient address.&lt;br /&gt;
|-&lt;br /&gt;
| Street || string || &lt;br /&gt;
* Optional &lt;br /&gt;
* Maximum 50 characters&lt;br /&gt;
|| The shipping street address with house number and other details.&lt;br /&gt;
|-&lt;br /&gt;
| Street2 || string || &lt;br /&gt;
* Optional &lt;br /&gt;
* Maximum 50 characters&lt;br /&gt;
|| The address, continued.&lt;br /&gt;
|-&lt;br /&gt;
| Street3 || string || &lt;br /&gt;
* Optional&lt;br /&gt;
* Maximum 50 characters &lt;br /&gt;
|| The address, continued.&lt;br /&gt;
|-&lt;br /&gt;
| FullName || string || &lt;br /&gt;
* Optional&lt;br /&gt;
* Maximum 45 characters &lt;br /&gt;
|| The name of the customer on the shipping address&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Token_payment_3D_Secure&amp;diff=2882</id>
		<title>Token payment 3D Secure</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Token_payment_3D_Secure&amp;diff=2882"/>
		<updated>2020-11-27T15:08:18Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Testing the whole payment flow, without challenge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=Token Payment with 3D Secure}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{IncompletePage}}&lt;br /&gt;
&lt;br /&gt;
This payment scenario allows the integrator shop to register a token for a customer (and a funding source) in the Barion system and then, later on, using this token, charge the customer without redirecting her to the Barion Smart Gateway UI. The user may be present at the site of the merchant or she can be off-session as well, so the merchant can charge her e.g. for subscriptions. This means that the customer authorizes the shop to charge her card or Barion balance without typing in the card information or Barion login again.&lt;br /&gt;
&lt;br /&gt;
[[File:3ds-recurring.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=Premium feature|text=This scenario is not allowed automatically for every approved shop and should be requested from Barion!|color=#1993c7}}&lt;br /&gt;
&lt;br /&gt;
= Token payment scenarios =&lt;br /&gt;
Token payment can be used in three use cases: &lt;br /&gt;
* &#039;&#039;&#039;Customer Initiated Payments&#039;&#039;&#039;: when the user is present on the website of the merchant and she decides to pay :&lt;br /&gt;
** &#039;&#039;&#039;OneClick payment&#039;&#039;&#039;: the user is charged upon her request initiated on the website of the merchant. Subsequent payments are subject to PSD2 SCA and as the user is present, she has to go through the authentication process.&lt;br /&gt;
* &#039;&#039;&#039;Merchant Initiated Payments&#039;&#039;&#039;: when the merchant initiates the payment without the user being present. It has two subtypes:&lt;br /&gt;
** &#039;&#039;&#039;Recurring payment&#039;&#039;&#039;: the user is charged with the same amount on a regular basis, typically in case of subscriptions. Subsequent payments are exempted from PSD2 SCA, but liability still shifts to the card issuer.&lt;br /&gt;
** &#039;&#039;&#039;MIT (merchant initiated transaction)&#039;&#039;&#039;: the user is charged on an irregular basis and/or with a different amount. Subsequent payments of this type are excluded from PSD2 SCA, the liability is on the merchant.&lt;br /&gt;
&lt;br /&gt;
== Customer participation ==&lt;br /&gt;
&lt;br /&gt;
Since the token scenario is suitable for both customer and merchant initiated payments here is a comparison about who starts the payment. This includes the regular, non-tokenized payment scenario as well:&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot; | Scenario&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | Initial payment&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | Subsequent payments&lt;br /&gt;
|-&lt;br /&gt;
! Customer present&lt;br /&gt;
! Customer at Barion Smart GW &lt;br /&gt;
! Customer present&lt;br /&gt;
! Customer at Barion Smart GW&lt;br /&gt;
|-&lt;br /&gt;
| Non token (regular) payment || YES || YES || YES || YES &lt;br /&gt;
|-&lt;br /&gt;
| OneClick payment || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || YES || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || style=&amp;quot;background:#FFE2C4&amp;quot; | NO || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
| MIT || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || style=&amp;quot;background:#FFE2C4&amp;quot; | NO || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #aaa; background-color:#eee; font-size: 0.8em; padding:5px 10px; display:inline-block;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; Token payment scenarios can be initiated with already registered &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; as well, in this case the customer may remain on the merchant&#039;s site. &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Requirements for the scenarios ==&lt;br /&gt;
&lt;br /&gt;
These token payment scenarios have different requirements, this table below summarizes the key differences.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Scenario&lt;br /&gt;
! Payment amount&lt;br /&gt;
! Payment frequency&lt;br /&gt;
! Liability in case of fraud&lt;br /&gt;
|-&lt;br /&gt;
| OneClick payment || Various || Various || Card issuer&lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || Subsequent amounts must be equal or less than the initial amount  || Initial payment must define a minimum amount of days to wait between charges || Card issuer &lt;br /&gt;
|-&lt;br /&gt;
| Merchant initiated payment || Various  || Various || Merchant&lt;br /&gt;
|- &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 3DS authentication of the payer ==&lt;br /&gt;
&lt;br /&gt;
The new more secure 3DS v2 authentication must be performed for every online card payment. These token payment scenarios also have to use this new secure way of authentication. &lt;br /&gt;
The initial payment of a token scenario must be authenticated every time although the subsequent payments may be exempted in certain cases. &lt;br /&gt;
&lt;br /&gt;
Here is a table to compare the 3DS authentication requirements:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Scenario&lt;br /&gt;
! Initial payment&lt;br /&gt;
! Subsequent payments&lt;br /&gt;
|-&lt;br /&gt;
| One-click payment || ✔️ || ✔️&lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || ✔️ || &lt;br /&gt;
|-&lt;br /&gt;
| Merchant initiated payment || ✔️ || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Real life examples ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Phone bill&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Payer has a usage-based phone subscription that wants to pay without being present for every charge. She authorizes the phone company to charge her card every month.&lt;br /&gt;
* Scenario: Merchant Initiated Transaction&lt;br /&gt;
* Explanation: Despite the frequency of the charges is monthly, the amount of the subsequent payments may exceed the initial payment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TV subscription&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Payer subscribes to online streaming of a television channel. She authorizes the tv company to charge her card every month. The subscription fee is the same for every month.&lt;br /&gt;
* Scenario: Recurring payment&lt;br /&gt;
* Explanation: The amount of the subsequent payments will not exceed the initial payment and the charge is regularly monthly-based.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bookclub with &amp;quot;free first month&amp;quot; bonus&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Payer subscribes to a book renting service. he authorizes the book club to charge her card for a selection of books each month. The subscription fee is the same for every month however, the first month is free. To ensure the subscription the service requires her to register her card details.&lt;br /&gt;
* Scenario: Merchant Initiated Transaction&lt;br /&gt;
* Explanation: Despite the frequency of the charges is monthly, and the fee will stay the same, the initial payment is zero. So the amount of the next payment will exceed the initial payment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Online food delivery service&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The food delivery company wants to provide a quick and easy experience for its customer. They decide that the order will be quicker if the customers don&#039;t leave the website to pay for the goods.&lt;br /&gt;
* Scenario: OneClick payment&lt;br /&gt;
* Explanation: The customer will always be there so the other two scenarios are not available.&lt;br /&gt;
&lt;br /&gt;
== How to decide ==&lt;br /&gt;
&lt;br /&gt;
To help you decide on a suitable scenario, please use the decision graph below:&lt;br /&gt;
&lt;br /&gt;
[[File:3ds-recurrencetype-decision.png|520px]]&lt;br /&gt;
&lt;br /&gt;
= Prerequisites =&lt;br /&gt;
To be able to integrate your webshop with the Barion Payment Gateway: &lt;br /&gt;
* You must [[Creating_an_account|register a Barion wallet]] at the Barion website or in the Sandbox environment. Learn more about the Sandbox environment [[Sandbox|here]].&lt;br /&gt;
* For this wallet you have to [[Creating_a_shop|create a shop]] which should be approved by Barion.&lt;br /&gt;
* For every currency you plan to conduct payments in you have to make sure there is an account created in your Barion wallet. This means that if you plan to have USD payments then there should be a USD account created in your wallet.&lt;br /&gt;
* To make sure every corner case scenario works for your webshop it is best to top up that account with a small amount (approx. 5-10EUR or your choice of currency around the same value).&lt;br /&gt;
* For the technical communication guide please read this: [[Calling_the_API|Calling the API]]&lt;br /&gt;
&lt;br /&gt;
= The payment process =&lt;br /&gt;
&lt;br /&gt;
The process is divided into two major steps:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
   &amp;lt;li&amp;gt;[[#Step 1:  Creating the funding source token|Creating the token]] that represents one of the customer&#039;s funding sources (credit card or e-money wallet)&lt;br /&gt;
      &amp;lt;ol&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Preparing the payment via the Barion API&amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Redirecting the customer to the Barion Smart Gateway to select a funding source&amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Processing the callback and requesting information about the result of the payment&amp;lt;/li&amp;gt;&lt;br /&gt;
      &amp;lt;/ol&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li&amp;gt;[[#Step 2: Using the token|Using the registered token]] to charge the customer&amp;lt;/li&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 1:  Creating the funding source token ==&lt;br /&gt;
To be able to use a token payment scenario first the merchant has to register the token with Barion. The merchant has to make sure that the customer is well aware of the fact that they are giving consent to a tokenized payment. The Barion Smart Gateway UI does not indicate in any way that the payment is a token payment.&lt;br /&gt;
&lt;br /&gt;
The token is registered to the shop and not to the merchant&#039;s Barion account. So if the merchant has multiple shops in its Barion account, the registered tokens can not be shared among them even if the customer is the same. If you want to use tokens in multiple shops, please contact Barion in the Customer center.&lt;br /&gt;
&lt;br /&gt;
=== 1.1 Preparing the payment===&lt;br /&gt;
&lt;br /&gt;
The token registration is basically a [[Responsive_web_payment|normal payment]] with three extra properties in the [[Payment-Start-v2|Payment/Start]] request:&lt;br /&gt;
* InitiateRecurrence&lt;br /&gt;
* RecurrenceId&lt;br /&gt;
* RecurrenceType&lt;br /&gt;
&lt;br /&gt;
==== InitiateRecurrence====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; is a bool property. If you set it to &#039;&#039;&#039;true&#039;&#039;&#039; then the payment gateway will consider the payment as a token registration. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This happens even if the customer is already has a registered token, so you are able to re-register a funding source or even a customer. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceId ====&lt;br /&gt;
The next required property for a token registration is the token itself. This is generated by the shop and has to be unique for every registration. The token should be specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; property of the [[Payment-Start-v2|Payment/Start]] request. This token must be saved in the webshops database. A &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; token represents the funding source (bank card or Barion balance) of a customer. Since a customer can have multiple cards and accounts as a funding source make sure that in the webshop&#039;s system multiple tokens can belong to a single customer.&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceType ====&lt;br /&gt;
The third required property is the [[RecurrenceType|Recurrence Type]]. This specifies the scenario. In case of Recurring Payment &amp;lt;code&amp;gt;PurchaseInformation.RecurringExpiry&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PurchaseInformation.RecurringFrequency&amp;lt;/code&amp;gt; must also be set.&lt;br /&gt;
&lt;br /&gt;
==== Example JSON request for a Merchant Initiated Payment scenario ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: true,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the first month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-01&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response will be the same as to a [[Responsive_web_payment#Processing_the_successful_response|basic &#039;&#039;&#039;Immediate&#039;&#039;&#039; scenario]]. The &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; property at this point is &#039;&#039;&#039;None&#039;&#039;&#039; since the token is not registered to a funding source yet.&lt;br /&gt;
&lt;br /&gt;
==== Example JSON request for a Recurring Payment scenario ====&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Recurring Payment&#039;&#039;&#039; scenario has some extra restrictions. The merchant has to specify two additional properties in the [[Payment-Start-v2|Payment/Start]] request:&lt;br /&gt;
* &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt;: The date after subsequent charges should not be accepted.&lt;br /&gt;
* &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt;: The minimum days the merchant has to wait between payments.&lt;br /&gt;
&lt;br /&gt;
Both properties are located in the [[PurchaseInformation]] property and must be specified if this scenario is selected.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7, 30-33&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: true,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;RecurringPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the first month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-01&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;PurchaseInformation&amp;quot;:{&lt;br /&gt;
        &amp;quot;RecurringFrequency&amp;quot;: 10,&lt;br /&gt;
        &amp;quot;RecurringExpiry&amp;quot;: &amp;quot;2022-10-01&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Possible error responses ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| RecurringPaymentNotAllowed || The token payment is not allowed for the shop identified by the &#039;&#039;&#039;POSKey&#039;&#039;&#039;. Contact Barion to request this feature.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 1.2 Redirecting the customer to the Barion Smart Gateway to select a funding source ===&lt;br /&gt;
&lt;br /&gt;
After a successful payment preparation, the customer is redirected to the secure Barion Smart Gateway to choose a funding source. The funding source the customer selects will be registered to the token. The funding source can either be a Barion e-money balance or a bank card. This means that even though the customer may own multiple cards only the one that was registered to the token can be used for future token payments. To change the funding source attached to the token a new registration should be requested.&lt;br /&gt;
&lt;br /&gt;
=== 1.3 Processing the callback and requesting information about the result of the payment ===&lt;br /&gt;
&lt;br /&gt;
When the payment is completed (either successfully or unsuccessfully) a callback message is sent to the merchant&#039;s system. Once received a [[Payment-GetPaymentState-v2|GetPaymentState]] request must be sent to the Barion API. On how to implement this please read the article about the  [[Callback_mechanism|Callback mechanism]].&lt;br /&gt;
&lt;br /&gt;
The full response of the GetPaymentState request depends on the payment scenario and the structure of the payment. When it comes to token payment there are several properties to look out for. &lt;br /&gt;
* In case the &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; is &#039;&#039;&#039;Succeeded&#039;&#039;&#039; the funding source token is registered and ready to use.&lt;br /&gt;
* The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; contains the ID of the token process. This specifies the nature of the token payment. &lt;br /&gt;
&lt;br /&gt;
==== TraceId ====&lt;br /&gt;
&lt;br /&gt;
In case of Recurring payment or Merchant initiated payment scenarios the [[Payment-GetPaymentState-v2|GetPaymentState]] response returns an additional field called &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;. The value of this property is generated by the card issuer. The merchant has to save it and submit it in all subsequent Recurring or Merchant initiated payments of the same type, otherwise, the payments can be declined by the issuer. The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; represents the first, customer-present payment and helps the issuer to connect subsequent payments to this initial payment.&lt;br /&gt;
&lt;br /&gt;
====Example GetPaymentState response====&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;8, 11-12&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;OrderNumber&amp;quot;: null,&lt;br /&gt;
    &amp;quot;POSId&amp;quot;: &amp;quot;[[SHOPS_PUBLIC_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;POSName&amp;quot;: &amp;quot;[[MERCHANTS_BARION_SHOPNAME]]&amp;quot;,&lt;br /&gt;
    &amp;quot;POSOwnerEmail&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSource&amp;quot;: &amp;quot;BankCard&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingInformation&amp;quot;: {&lt;br /&gt;
        &amp;quot;BankCard&amp;quot;: {&lt;br /&gt;
            &amp;quot;MaskedPan&amp;quot;: &amp;quot;0425&amp;quot;,&lt;br /&gt;
            &amp;quot;BankCardType&amp;quot;: &amp;quot;Visa&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruYear&amp;quot;: &amp;quot;2020&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruMonth&amp;quot;: &amp;quot;12&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;AuthorizationCode&amp;quot;: &amp;quot;512244&amp;quot;,&lt;br /&gt;
        &amp;quot;ProcessResult&amp;quot;: &amp;quot;Successful&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;AllowedFundingSources&amp;quot;: [&lt;br /&gt;
        &amp;quot;All&amp;quot;&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;GuestCheckout&amp;quot;: true,&lt;br /&gt;
    &amp;quot;CreatedAt&amp;quot;: &amp;quot;2020-11-26T07:52:48.9Z&amp;quot;,&lt;br /&gt;
    &amp;quot;ValidUntil&amp;quot;: &amp;quot;2020-11-26T08:22:48.9Z&amp;quot;,&lt;br /&gt;
    &amp;quot;CompletedAt&amp;quot;: &amp;quot;2020-11-26T08:11:54.118Z&amp;quot;,&lt;br /&gt;
    &amp;quot;ReservedUntil&amp;quot;: null,&lt;br /&gt;
    &amp;quot;DelayedCaptureUntil&amp;quot;: null,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
           ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;Total&amp;quot;: 25.20,&lt;br /&gt;
    &amp;quot;SuggestedLocale&amp;quot;: &amp;quot;hu-HU&amp;quot;,&lt;br /&gt;
    &amp;quot;FraudRiskScore&amp;quot;: null,&lt;br /&gt;
    &amp;quot;RedirectUrl&amp;quot;: &amp;quot;https://merchanturl/Redirect?paymentId=2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;CallbackUrl&amp;quot;: &amp;quot;https://merchanturl/Callback?paymentId=2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Displaying the funding source in a GUI ====&lt;br /&gt;
We strongly advise saving the complete response for future reference. The &amp;lt;code&amp;gt;FundingSource&amp;lt;/code&amp;gt; field tells if the funding source is a Barion balance or a card. If it is a card, it is useful to save [[FundingInformation]] for displaying it for the user, when requesting future payments. The usual way to display funding sources is to show the last 4 digits of the card, with 4 stars, eg: *** 1234. The card used can be obtained from FundingInformation&#039;s [[BankCard]] field. The [[CardType]] field can be used to display the appropriate card logo. You can even show, if the card is expired, and offer to register another one.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; FundingInformation part of the GetPaymentState response &#039;&#039;&#039;&lt;br /&gt;
&amp;lt;source lang=json&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
    &amp;quot;FundingInformation&amp;quot;: {&lt;br /&gt;
        &amp;quot;BankCard&amp;quot;: {&lt;br /&gt;
            &amp;quot;MaskedPan&amp;quot;: &amp;quot;0425&amp;quot;,&lt;br /&gt;
            &amp;quot;BankCardType&amp;quot;: &amp;quot;Visa&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruYear&amp;quot;: &amp;quot;2020&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruMonth&amp;quot;: &amp;quot;12&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;AuthorizationCode&amp;quot;: &amp;quot;512244&amp;quot;,&lt;br /&gt;
        &amp;quot;ProcessResult&amp;quot;: &amp;quot;Successful&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be displayed for example as &amp;lt;code&amp;gt;VISA **** 0425 (12/20)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a request-response diagram of the token registration process:&lt;br /&gt;
 &lt;br /&gt;
[[File:Token_payment_initiation.jpg]]&lt;br /&gt;
&lt;br /&gt;
= Step 2: Using the token =&lt;br /&gt;
&lt;br /&gt;
To use an already registered token for a payment, you have to use the same [[Payment-Start-v2|/Payment/Start]] API endpoint but the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; should be set to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;. This tells the Barion API to use the token for payment instead of only registering it. The token should be specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; property. To be able to use a token, the initial payment must be in a successful state.&lt;br /&gt;
&lt;br /&gt;
At this point, the merchant has to decide whether this subsequent payment is used for the same token payment scenario or something changed. This is important because the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; can only be used for the same scenario, otherwise, the card issuer will decline the charge.&lt;br /&gt;
A &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; can only be used again if:&lt;br /&gt;
* the funding source is the same (technically the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is the same)&lt;br /&gt;
* the token payment scenario is the same (technically the &amp;lt;code&amp;gt;RecurrenceType&amp;lt;/code&amp;gt; is the same)&lt;br /&gt;
* this subsequent request complies with the scenario restrictions (eg: in case of recurring payment the amount of the subsequent payment does not exceed the initial amount)&lt;br /&gt;
&lt;br /&gt;
If the funding source changes, new &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; must be requested. The process to do that is [[#Changing the funding source|described in detail here]]. If the funding source stays the same but the scenario changes or the restrictions are no longer met new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; must be requested. The process to do that is [[#Changing the token payment scenario with an existing token|described here]].&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of Recurring payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this case, three extra conditions must be met:&lt;br /&gt;
* the amount of the subsequent payment must not be higher than the initial amount&lt;br /&gt;
* at least that much days must be spent as defined in the initial &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; property&lt;br /&gt;
* the date of the payment must not exceed the day specified in the initial &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt; property&lt;br /&gt;
&lt;br /&gt;
Please be aware that in case any of these are no longer valid the merchant has to request a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; as [[#Changing the token payment scenario with an existing token|described here]]. &lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=IMPORTANT|text=These conditions are not enforced by the Barion system so the violation of them will result in a declined charge.|color=#FF7A3D}}&lt;br /&gt;
&lt;br /&gt;
Payment/start must not include the &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt; properties (since they are already fixed during the initial payment).&lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent Recurring payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-8&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;RecurringPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the second month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8,11&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: null,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The structure of the response is the same as the normal &amp;lt;tt&amp;gt;/Payment/Start&amp;lt;/tt&amp;gt; response just the statuses will be different. In this case&lt;br /&gt;
* the payment level &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Succeeded&#039;&#039;&#039; instead of &#039;&#039;&#039;Prepared&#039;&#039;&#039;&lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Successful&#039;&#039;&#039; (or &#039;&#039;&#039;Failed&#039;&#039;&#039;) instead of &#039;&#039;&#039;None&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The value of the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be the same as in the request.&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of Merchant Initiated Payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this scenario there are no restrictions.&lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent Merchant Initiated Payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-8&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;KBYRR55322844552124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 75,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Usage fee for 2020/12&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Phone bill&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Usage fee for 2020/12&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 75,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 75,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8,11&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: null,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;KBYRR55322844552124780&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The structure of the response is the same as the normal &amp;lt;tt&amp;gt;/Payment/Start&amp;lt;/tt&amp;gt; response just the statuses will be different. In this case&lt;br /&gt;
* the payment level &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Succeeded&#039;&#039;&#039; instead of &#039;&#039;&#039;Prepared&#039;&#039;&#039;&lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Successful&#039;&#039;&#039; (or &#039;&#039;&#039;Failed&#039;&#039;&#039;) instead of &#039;&#039;&#039;None&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The value of the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be the same as in the request.&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of OneClick Payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this scenario, the merchant has to prepare to perform the [[#Off-site 3DS v2 authentication|off-site 3DS v2 authentication]] of the payer. 3DS authentication is not required in the following cases:&lt;br /&gt;
* the token (&amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;) was requested before 3DS came into effect,&lt;br /&gt;
* the original payment was not initialized by bank card,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is not used in this scenario since the payer is present during the transaction. &lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent OneClick Payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;OneClickPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 17,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Book: How to shop online&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;How to shop online&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Book about shopping online&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;piece&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 17,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 17,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
In this scenario, the response contains the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; property that is used to perform an [[#Off-site 3DS v2 authentication|off-site 3DS v2 authentication]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8-9&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: &amp;quot;ewoJIkNhcmRQdWJs...WZXJzaW9uIjogIjIuMS4wIgp9Cg==&amp;quot;,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Possible error responses for the subsequent payment requests ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| InvalidRecurrenceId|| The token specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is invalid. Check if the token registration was successful.&lt;br /&gt;
|-&lt;br /&gt;
| RecurringPaymentDenied|| Something happened to the user since the token registration, either deleted, suspended, or blocked. The payment s not allowed in these cases.&lt;br /&gt;
|-&lt;br /&gt;
| InsufficientFunds|| If the original payment was with an e-money wallet and the customer doesn&#039;t have enough money to fulfill this charge this error happens.&lt;br /&gt;
|-&lt;br /&gt;
| OriginalPaymentWasntSuccessful || This means that the token belongs to an originally unsuccessful payment so this token can not be used anymore. This could only happen if the original payment was financed with a credit card.&lt;br /&gt;
|-&lt;br /&gt;
|InvalidCurrency || If the original payment was paid with e-money and the current token payment is in a currency that the wallet does not have an account in this error happens.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is the request-response diagram of the subsequent payments:&lt;br /&gt;
&lt;br /&gt;
[[File:Token_payment_2.png]]&lt;br /&gt;
&lt;br /&gt;
= Changing funding source or token scenarios =&lt;br /&gt;
&lt;br /&gt;
==Changing the funding source==&lt;br /&gt;
&lt;br /&gt;
This could happen if the funding source becomes invalid for some reason (card gets deleted or expires) or the merchant decides to use that token for another payer. In this case, the merchant has to register the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; again. &lt;br /&gt;
To do this a new payment must be started and in the [[Payment-Start-v2|Payment/Start]] request the following setup should be specified:&lt;br /&gt;
* the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; field has to be set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; &lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; has to be specified.&lt;br /&gt;
* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; should not be specified.&lt;br /&gt;
&lt;br /&gt;
[[File:Funding-source-change.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
Since the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is bound to the payer and the process if the funding source changes new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be generated. This new ID must be saved to this payment and must be used from this moment on for subsequent payments.&lt;br /&gt;
&lt;br /&gt;
==Changing the token payment scenario with an existing token==&lt;br /&gt;
&lt;br /&gt;
This could occur when the merchant wants to get authorization from the payer to a new token scenario for the already registered funding source. To be able to do this the merchant has to have a valid and registered &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;.&lt;br /&gt;
Let&#039;s see some examples when this may be necessary:&lt;br /&gt;
* The payer subscribed to the merchant&#039;s service beforehand and the merchant decided to use the recurring payment token scenario. The payer wants to subscribe to another service and this requires a different payment schedule. This means that the &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; that was specified initially can not be maintained so it is required to acquire a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;&lt;br /&gt;
* The payer bought something on the merchant&#039;s website and uses the one-click feature for subsequent fast non-redirect payments. After a while, the payer decides to subscribe to a service provided by this same merchant. This means that the merchant has to create a new token scenario (not a one-click payment but a recurring payment). For this, the merchant has to acquire a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;. This can be done without redirecting the payer to Barion using the existing &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; and performing a 3DS authentication on the merchant&#039;s website.&lt;br /&gt;
&lt;br /&gt;
To do these a new payment must be started and in the [[Payment-Start-v2|Payment/Start]] request the following setup should be specified:&lt;br /&gt;
* the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; field has to be set to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; &lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; has to be specified.&lt;br /&gt;
* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; should not be specified.&lt;br /&gt;
&lt;br /&gt;
After this, a 3DS authentication has to be completed to acquire a new trace ID. This can be done on the merchant&#039;s site if the merchant implements the barion.offsitegw.js for off-site 3DS authentication.&lt;br /&gt;
&lt;br /&gt;
This means that it can be achieved to acquire different Trace IDs for different scenarios with only one &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;.&lt;br /&gt;
This is basically categorizing the different token scenarios as opposed to using every subsequent payment as an unmarked charge.&lt;br /&gt;
&lt;br /&gt;
[[File:Mutiple-traceid.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
= Off-site 3DS v2 authentication =&lt;br /&gt;
&lt;br /&gt;
In certain scenarios, the payer has to be authenticated to lower the risk of the card transaction. This can be either performed &lt;br /&gt;
* on the Barion Smart Gateway (on-site) by redirecting the customer to Barion &lt;br /&gt;
* or on the merchant&#039;s website (off-site) by integrating the Barion Off-site client library.&lt;br /&gt;
&lt;br /&gt;
This section describes how to integrate the Barion off-site authentication library into the merchant&#039;s site.&lt;br /&gt;
&lt;br /&gt;
== Step 1 : Initialize the off-site authentication library  ==&lt;br /&gt;
You have to include the following css and javascript files in the code of your site. &lt;br /&gt;
&amp;lt;source lang=html&amp;gt;&lt;br /&gt;
&amp;lt;link href=&amp;quot;https://secure.barion.com/static/barion.offsitegw.min.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;https://secure.barion.com/static/barion.offsitegw.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/source &amp;gt;&lt;br /&gt;
These files include all the necessary javascript code and styling to handle the 3DS authentication and display the challenge if necessary.&lt;br /&gt;
&lt;br /&gt;
Then you have to initialize the Barion javascript client. To do that, you have to define a configuration object that specifies your functions that handle the off-site authentication events. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Authentication events&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;onAuthenticationSucceeded&amp;lt;/code&amp;gt;: the 3DS v2 authentication successfully completed&lt;br /&gt;
* &amp;lt;code&amp;gt;onAuthenticationFailed&amp;lt;/code&amp;gt;:  the 3DS v2 authentication failed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
const configuration = {&lt;br /&gt;
    onAuthenticationSucceeded: function () {&lt;br /&gt;
        // handle successful authentication by calling the Barion API via merchant&#039;s backend&lt;br /&gt;
        // Call the v2/payment/complete endpoint&lt;br /&gt;
    },&lt;br /&gt;
    onAuthenticationFailed: function () {&lt;br /&gt;
        // Handle unsuccessful authentication result, no charge was made.&lt;br /&gt;
        // The payment might be still valid only the authentication failed&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you have to pass this config object to the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
const gw = new Barion.OffsiteGw(configuration);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Start the authentication process ===&lt;br /&gt;
Once the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; is acquired from the payment/start you can start the authentication process by calling the &amp;lt;code&amp;gt;authenticate()&amp;lt;/code&amp;gt; method of the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
gw.authenticate(threeDsClientData);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will start the authentication process and present the challenge if needed. Visually this will create a modal window over the merchant&#039;s site and show the payer every necessary information.&lt;br /&gt;
Once the authentication process finished (either with or without a challenge) the appropriate event will be fired. &lt;br /&gt;
&lt;br /&gt;
== Step 3: Completing the payment ==&lt;br /&gt;
&lt;br /&gt;
In case of successful authentication, you have to call our [[Payment-Complete-v3|/Payment/Complete]] endpoint, where the actual charge will happen.&lt;br /&gt;
&lt;br /&gt;
=== Possible error responses for the subsequent payment requests ===&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
== Suggested implementation flow for off-site authentication ==&lt;br /&gt;
&lt;br /&gt;
Ideally, an off-site authentication should be part of a client-side experience without any postbacks or page reloads. This is our recommendation to achieve this:&lt;br /&gt;
&lt;br /&gt;
# After the customer clicks on the &amp;quot;Pay&amp;quot; button make an AJAX call from your client-side code to your back-end. &lt;br /&gt;
# Have your backend make a request to our payment/start endpoint (with the appropriate settings for the desired token scenario)&lt;br /&gt;
# Have your backend process the response and pass the value of the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; property to your client-side code.&lt;br /&gt;
# Use the Barion off-site library to perform the authentication&lt;br /&gt;
# Once the authentication succeeds send another AJAX request from your client-side code to your back-end.&lt;br /&gt;
# Have your back-end code call our [[Payment-Complete-v3|/Payment/Complete]]&lt;br /&gt;
# Have your backend process the response and pass the result to your client-side code.&lt;br /&gt;
# Display the result for the customer&lt;br /&gt;
&lt;br /&gt;
= Testing the integration =&lt;br /&gt;
&lt;br /&gt;
3D Secure has no environment for end-to-end testing, therefore merchants have to split their testings into two parts: Testing the payment flow with and without challenge. Getting a challenge is only possible with real-life cards, merchants have to use their own (there will be no real charging at the end on the Sandbox of the Payment Gateway, but using a real card will result initiating a real 3DS authentication).&lt;br /&gt;
&lt;br /&gt;
== Testing the whole payment flow, without challenge ==&lt;br /&gt;
&lt;br /&gt;
Use the [[https://docs.barion.com/Sandbox#Test_cards Barion test cards]], they will always get a &amp;quot;frictionless&amp;quot; flow, where the 3DS process is presented on the UI, but you will never see a challenge screen. &lt;br /&gt;
&lt;br /&gt;
This is good for testing your integration itself because it will lead to a successful charge, and you will get a TraceId as well.&lt;br /&gt;
&lt;br /&gt;
== Testing the challenge itself ==&lt;br /&gt;
&lt;br /&gt;
Use your own card, and let the card issuer decide whether your payment will get a challenge or not during the 3DS authentication procedure. Your payment will fail at the end, and you won&#039;t get the TraceId. &lt;br /&gt;
&lt;br /&gt;
This is good to test, how the challenge screens look like in your shop - especially when you integrated OneClick payment directly to your shop. You might also check how your customers see your checkout flow on popular devices.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Token_payment_3D_Secure&amp;diff=2878</id>
		<title>Token payment 3D Secure</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Token_payment_3D_Secure&amp;diff=2878"/>
		<updated>2020-11-26T15:08:52Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Testing the whole payment flow, without challenge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=Token Payment with 3D Secure}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{IncompletePage}}&lt;br /&gt;
&lt;br /&gt;
This payment scenario allows the integrator shop to register a token for a customer (and a funding source) in the Barion system and then, later on, using this token, charge the customer without redirecting her to the Barion Smart Gateway UI. The user may be present at the site of the merchant or she can be off-session as well, so the merchant can charge her e.g. for subscriptions. This means that the customer authorizes the shop to charge her card or Barion balance without typing in the card information or Barion login again.&lt;br /&gt;
&lt;br /&gt;
[[File:3ds-recurring.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=Premium feature|text=This scenario is not allowed automatically for every approved shop and should be requested from Barion!|color=#1993c7}}&lt;br /&gt;
&lt;br /&gt;
= Token payment scenarios =&lt;br /&gt;
Token payment can be used in three use cases: &lt;br /&gt;
* &#039;&#039;&#039;Customer Initiated Payments&#039;&#039;&#039;: when the user is present on the website of the merchant and she decides to pay :&lt;br /&gt;
** &#039;&#039;&#039;OneClick payment&#039;&#039;&#039;: the user is charged upon her request initiated on the website of the merchant. Subsequent payments are subject to PSD2 SCA and as the user is present, she has to go through the authentication process.&lt;br /&gt;
* &#039;&#039;&#039;Merchant Initiated Payments&#039;&#039;&#039;: when the merchant initiates the payment without the user being present. It has two subtypes:&lt;br /&gt;
** &#039;&#039;&#039;Recurring payment&#039;&#039;&#039;: the user is charged with the same amount on a regular basis, typically in case of subscriptions. Subsequent payments are exempted from PSD2 SCA, but liability still shifts to the card issuer.&lt;br /&gt;
** &#039;&#039;&#039;MIT (merchant initiated transaction)&#039;&#039;&#039;: the user is charged on an irregular basis and/or with a different amount. Subsequent payments of this type are excluded from PSD2 SCA, the liability is on the merchant.&lt;br /&gt;
&lt;br /&gt;
== Customer participation ==&lt;br /&gt;
&lt;br /&gt;
Since the token scenario is suitable for both customer and merchant initiated payments here is a comparison about who starts the payment. This includes the regular, non-tokenized payment scenario as well:&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot; | Scenario&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | Initial payment&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | Subsequent payments&lt;br /&gt;
|-&lt;br /&gt;
! Customer present&lt;br /&gt;
! Customer at Barion Smart GW &lt;br /&gt;
! Customer present&lt;br /&gt;
! Customer at Barion Smart GW&lt;br /&gt;
|-&lt;br /&gt;
| Non token (regular) payment || YES || YES || YES || YES &lt;br /&gt;
|-&lt;br /&gt;
| OneClick payment || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || YES || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || style=&amp;quot;background:#FFE2C4&amp;quot; | NO || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
| MIT || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || style=&amp;quot;background:#FFE2C4&amp;quot; | NO || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #aaa; background-color:#eee; font-size: 0.8em; padding:5px 10px; display:inline-block;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; Token payment scenarios can be initiated with already registered &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; as well, in this case the customer may remain on the merchant&#039;s site. &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Requirements for the scenarios ==&lt;br /&gt;
&lt;br /&gt;
These token payment scenarios have different requirements, this table below summarizes the key differences.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Scenario&lt;br /&gt;
! Payment amount&lt;br /&gt;
! Payment frequency&lt;br /&gt;
! Liability in case of fraud&lt;br /&gt;
|-&lt;br /&gt;
| OneClick payment || Various || Various || Card issuer&lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || Subsequent amounts must be equal or less than the initial amount  || Initial payment must define a minimum amount of days to wait between charges || Card issuer &lt;br /&gt;
|-&lt;br /&gt;
| Merchant initiated payment || Various  || Various || Merchant&lt;br /&gt;
|- &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 3DS authentication of the payer ==&lt;br /&gt;
&lt;br /&gt;
The new more secure 3DS v2 authentication must be performed for every online card payment. These token payment scenarios also have to use this new secure way of authentication. &lt;br /&gt;
The initial payment of a token scenario must be authenticated every time although the subsequent payments may be exempted in certain cases. &lt;br /&gt;
&lt;br /&gt;
Here is a table to compare the 3DS authentication requirements:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Scenario&lt;br /&gt;
! Initial payment&lt;br /&gt;
! Subsequent payments&lt;br /&gt;
|-&lt;br /&gt;
| One-click payment || ✔️ || ✔️&lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || ✔️ || &lt;br /&gt;
|-&lt;br /&gt;
| Merchant initiated payment || ✔️ || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Real life examples ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Phone bill&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Payer has a usage-based phone subscription that wants to pay without being present for every charge. She authorizes the phone company to charge her card every month.&lt;br /&gt;
* Scenario: Merchant Initiated Transaction&lt;br /&gt;
* Explanation: Despite the frequency of the charges is monthly, the amount of the subsequent payments may exceed the initial payment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TV subscription&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Payer subscribes to online streaming of a television channel. She authorizes the phone company to charge her card every month. The subscription fee is the same for every month.&lt;br /&gt;
* Scenario: Recurring payment&lt;br /&gt;
* Explanation: The amount of the subsequent payments will not exceed the initial payment and the charge is regularly monthly-based.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bookclub with &amp;quot;free first month&amp;quot; bonus&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Payer subscribes to a book renting service. She authorizes the book club to charge her card every month for a selection of books. The subscription fee is the same for every month however, the first month is free. To ensure the subscription the service requires her to register her card details.&lt;br /&gt;
* Scenario: Merchant Initiated Transaction&lt;br /&gt;
* Explanation: Despite the frequency of the charges is monthly, and the fee will stay the same, the initial payment is zero. So the amount of the next payment will exceed the initial payment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Online food delivery service&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The food delivery company wants to provide a quick and easy experience for its customer. They decide that the order will be quicker if the customers don&#039;t leave the website to pay for the goods.&lt;br /&gt;
* Scenario: OneClick payment&lt;br /&gt;
* Explanation: The customer will always be there so the other two scenarios are not available.&lt;br /&gt;
&lt;br /&gt;
== How to decide ==&lt;br /&gt;
&lt;br /&gt;
To help you decide on a suitable scenario, please use the decision graph below:&lt;br /&gt;
&lt;br /&gt;
[[File:3ds-recurrencetype-decision.png|520px]]&lt;br /&gt;
&lt;br /&gt;
= Prerequisites =&lt;br /&gt;
To be able to integrate your webshop with the Barion Payment Gateway: &lt;br /&gt;
* You must [[Creating_an_account|register a Barion wallet]] at the Barion website or in the Sandbox environment. Learn more about the Sandbox environment [[Sandbox|here]].&lt;br /&gt;
* For this wallet you have to [[Creating_a_shop|create a shop]] which should be approved by Barion.&lt;br /&gt;
* For every currency you plan to conduct payments in you have to make sure there is an account created in your Barion wallet. This means that if you plan to have USD payments then there should be a USD account created in your wallet.&lt;br /&gt;
* To make sure every corner case scenario works for your webshop it is best to top up that account with a small amount (approx. 5-10EUR or your choice of currency around the same value).&lt;br /&gt;
* For the technical communication guide please read this: [[Calling_the_API|Calling the API]]&lt;br /&gt;
&lt;br /&gt;
= The payment process =&lt;br /&gt;
&lt;br /&gt;
The process is divided into two major steps:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
   &amp;lt;li&amp;gt;[[#Step 1:  Creating the funding source token|Creating the token]] that represents one of the customer&#039;s funding sources (credit card or e-money wallet)&lt;br /&gt;
      &amp;lt;ol&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Preparing the payment via the Barion API&amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Redirecting the customer to the Barion Smart Gateway to select a funding source&amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Processing the callback and requesting information about the result of the payment&amp;lt;/li&amp;gt;&lt;br /&gt;
      &amp;lt;/ol&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li&amp;gt;[[#Step 2: Using the token|Using the registered token]] to charge the customer&amp;lt;/li&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 1:  Creating the funding source token ==&lt;br /&gt;
To be able to use a token payment scenario first the merchant has to register the token with Barion. The merchant has to make sure that the customer is well aware of the fact that they are giving consent to a tokenized payment. The Barion Smart Gateway UI does not indicate in any way that the payment is a token payment.&lt;br /&gt;
&lt;br /&gt;
The token is registered to the shop and not to the merchant&#039;s Barion account. So if the merchant has multiple shops in its Barion account, the registered tokens can not be shared among them even if the customer is the same. If you want to use tokens in multiple shops, please contact Barion in the Customer center.&lt;br /&gt;
&lt;br /&gt;
=== 1.1 Preparing the payment===&lt;br /&gt;
&lt;br /&gt;
The token registration is basically a [[Responsive_web_payment|normal payment]] with three extra properties in the [[Payment-Start-v2|Payment/Start]] request:&lt;br /&gt;
* InitiateRecurrence&lt;br /&gt;
* RecurrenceId&lt;br /&gt;
* RecurrenceType&lt;br /&gt;
&lt;br /&gt;
==== InitiateRecurrence====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; property is a bool property. If you set it to &#039;&#039;&#039;true&#039;&#039;&#039; then the payment gateway will consider the payment as a token registration. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This happens even if the customer is already has a registered token, so you are able to re-register a funding source or even a customer. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceId ====&lt;br /&gt;
The next required property for a token registration is the token itself. This is generated by the shop and has to be unique for every registration. The token should be specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; property of the [[Payment-Start-v2|Payment/Start]] request. This token must be saved in the webshops database. A &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; token represents the funding source (bank card or Barion balance) of a customer. Since a customer can have multiple cards and accounts as a funding source make sure that in the webshop&#039;s system multiple tokens can belong to a single customer.&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceType ====&lt;br /&gt;
The third required property is the [[RecurrenceType|Recurrence Type]]. This specifies the scenario. In case of Recurring Payment &amp;lt;code&amp;gt;PurchaseInformation.RecurringExpiry&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PurchaseInformation.RecurringFrequency&amp;lt;/code&amp;gt; must also be set.&lt;br /&gt;
&lt;br /&gt;
==== Example JSON request for a Merchant Initiated Payment scenario ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: true,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the first month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-01&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response will be the same as to a [[Responsive_web_payment#Processing_the_successful_response|basic &#039;&#039;&#039;Immediate&#039;&#039;&#039; scenario]]. The &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; property at this point is &#039;&#039;&#039;None&#039;&#039;&#039; since the token is not registered to a funding source yet.&lt;br /&gt;
&lt;br /&gt;
==== Example JSON request for a Recurring Payment scenario ====&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Recurring Payment&#039;&#039;&#039; scenario has some extra restrictions. The merchant has to specify two additional properties in the [[Payment-Start-v2|Payment/Start]] request:&lt;br /&gt;
* &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt;: The date after the subsequent charges should not accepted.&lt;br /&gt;
* &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt;: The minimum days the merchant has to wait between payments.&lt;br /&gt;
&lt;br /&gt;
Both properties are located in the [[PurchaseInformation]] property and must be specified if this scenario is selected.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7, 30-33&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: true,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;RecurringPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the first month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-01&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;PurchaseInformation&amp;quot;:{&lt;br /&gt;
        &amp;quot;RecurringFrequency&amp;quot;: 10,&lt;br /&gt;
        &amp;quot;RecurringExpiry&amp;quot;: &amp;quot;2022-10-01&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Possible error responses ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| RecurringPaymentNotAllowed || The token payment is not allowed for the shop identified by the &#039;&#039;&#039;POSKey&#039;&#039;&#039;. Contact Barion to request this feature.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 1.2 Redirecting the customer to the Barion Smart Gateway to select a funding source ===&lt;br /&gt;
&lt;br /&gt;
After a successful payment preparation, the customer is redirected to the secure Barion Smart Gateway to choose a funding source. The funding source the customer selects will be registered to the token. The funding source can either be a Barion e-money balance or a bank card. This means that even though the customer may own multiple cards only the one that was registered to the token can be used for future token payments. To change the funding source attached to the token a new registration should be requested.&lt;br /&gt;
&lt;br /&gt;
=== 1.3 Processing the callback and requesting information about the result of the payment ===&lt;br /&gt;
&lt;br /&gt;
When the payment is completed (either successfully or unsuccessfully) a callback message is sent to the merchant&#039;s system. Once received a [[Payment-GetPaymentState-v2|GetPaymentState]] request must be sent to the Barion API. On how to implement this please read the article about the  [[Callback_mechanism|Callback mechanism]].&lt;br /&gt;
&lt;br /&gt;
The full response of the GetPaymentState request depends on the payment scenario and the structure of the payment. When it comes to token payment there are several properties to look out for. &lt;br /&gt;
* In case the &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; is &#039;&#039;&#039;Succeeded&#039;&#039;&#039; the funding source token is registered and ready to use.&lt;br /&gt;
* The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; contains the ID of the token process. This specifies the nature of the token payment. &lt;br /&gt;
&lt;br /&gt;
==== TraceId ====&lt;br /&gt;
&lt;br /&gt;
In case of Recurring payment or Merchant initiated payment scenarios the [[Payment-GetPaymentState-v2|GetPaymentState]] response returns an additional field called &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;. The value of this property is generated by the card issuer. The merchant has to save it and submit it in all subsequent Recurring or Merchant initiated payments of the same type, otherwise, the payments can be declined by the issuer. The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; represents the first, customer-present payment and helps the issuer to connect subsequent payments to this initial payment.&lt;br /&gt;
&lt;br /&gt;
====Example GetPaymentState response====&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;8, 11-12&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;OrderNumber&amp;quot;: null,&lt;br /&gt;
    &amp;quot;POSId&amp;quot;: &amp;quot;[[SHOPS_PUBLIC_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;POSName&amp;quot;: &amp;quot;[[MERCHANTS_BARION_SHOPNAME]]&amp;quot;,&lt;br /&gt;
    &amp;quot;POSOwnerEmail&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSource&amp;quot;: &amp;quot;BankCard&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingInformation&amp;quot;: {&lt;br /&gt;
        &amp;quot;BankCard&amp;quot;: {&lt;br /&gt;
            &amp;quot;MaskedPan&amp;quot;: &amp;quot;0425&amp;quot;,&lt;br /&gt;
            &amp;quot;BankCardType&amp;quot;: &amp;quot;Visa&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruYear&amp;quot;: &amp;quot;2020&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruMonth&amp;quot;: &amp;quot;12&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;AuthorizationCode&amp;quot;: &amp;quot;512244&amp;quot;,&lt;br /&gt;
        &amp;quot;ProcessResult&amp;quot;: &amp;quot;Successful&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;AllowedFundingSources&amp;quot;: [&lt;br /&gt;
        &amp;quot;All&amp;quot;&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;GuestCheckout&amp;quot;: true,&lt;br /&gt;
    &amp;quot;CreatedAt&amp;quot;: &amp;quot;2020-11-26T07:52:48.9Z&amp;quot;,&lt;br /&gt;
    &amp;quot;ValidUntil&amp;quot;: &amp;quot;2020-11-26T08:22:48.9Z&amp;quot;,&lt;br /&gt;
    &amp;quot;CompletedAt&amp;quot;: &amp;quot;2020-11-26T08:11:54.118Z&amp;quot;,&lt;br /&gt;
    &amp;quot;ReservedUntil&amp;quot;: null,&lt;br /&gt;
    &amp;quot;DelayedCaptureUntil&amp;quot;: null,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
           ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;Total&amp;quot;: 25.20,&lt;br /&gt;
    &amp;quot;SuggestedLocale&amp;quot;: &amp;quot;hu-HU&amp;quot;,&lt;br /&gt;
    &amp;quot;FraudRiskScore&amp;quot;: null,&lt;br /&gt;
    &amp;quot;RedirectUrl&amp;quot;: &amp;quot;https://merchanturl/Redirect?paymentId=2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;CallbackUrl&amp;quot;: &amp;quot;https://merchanturl/Callback?paymentId=2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Displaying the funding source in a GUI ====&lt;br /&gt;
We strongly advise saving the complete response for future reference. The &amp;lt;code&amp;gt;FundingSource&amp;lt;/code&amp;gt; field tells if the funding source is a Barion balance or a card. If it is a card, it is useful to save [[FundingInformation]] for displaying it for the user, when requesting future payments. The usual way to display funding sources is to show the last 4 digits of the card, with 4 stars, eg: *** 1234. The card used can be obtained from FundingInformation&#039;s [[BankCard]] field. The [[CardType]] field can be used to display the appropriate card logo. You can even show, if the card is expired, and offer to register another one.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; FundingInformation part of the GetPaymentState response &#039;&#039;&#039;&lt;br /&gt;
&amp;lt;source lang=json&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
    &amp;quot;FundingInformation&amp;quot;: {&lt;br /&gt;
        &amp;quot;BankCard&amp;quot;: {&lt;br /&gt;
            &amp;quot;MaskedPan&amp;quot;: &amp;quot;0425&amp;quot;,&lt;br /&gt;
            &amp;quot;BankCardType&amp;quot;: &amp;quot;Visa&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruYear&amp;quot;: &amp;quot;2020&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruMonth&amp;quot;: &amp;quot;12&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;AuthorizationCode&amp;quot;: &amp;quot;512244&amp;quot;,&lt;br /&gt;
        &amp;quot;ProcessResult&amp;quot;: &amp;quot;Successful&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be displayed for example as &amp;lt;code&amp;gt;VISA **** 0425 (12/20)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a request-response diagram of the token registration process:&lt;br /&gt;
 &lt;br /&gt;
[[File:Token_payment_initiation.jpg]]&lt;br /&gt;
&lt;br /&gt;
= Step 2: Using the token =&lt;br /&gt;
&lt;br /&gt;
To use an already registered token for a payment, you have to use the same [[Payment-Start-v2|/Payment/Start]] API endpoint but the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; should be set to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;. This tells the Barion API to use the token for payment instead of only registering it. The token should be specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; property. To be able to use a token, the initial payment must be in a successful state.&lt;br /&gt;
&lt;br /&gt;
At this point, the merchant has to decide whether this subsequent payment is used for the same token payment scenario or something changed. This is important because the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; can only be used for the same scenario, otherwise, the card issuer will decline the charge.&lt;br /&gt;
A &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; can only be used again if:&lt;br /&gt;
* the funding source is the same (technically the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is the same)&lt;br /&gt;
* the token payment scenario is the same (technically the &amp;lt;code&amp;gt;RecurrenceType&amp;lt;/code&amp;gt; is the same)&lt;br /&gt;
* this subsequent request complies with the scenario restrictions (eg: in case of recurring payment the amount of the subsequent payment does not exceed the initial amount)&lt;br /&gt;
&lt;br /&gt;
If the funding source changes, new &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; must be requested. The process to do that is [[#Changing the funding source|described in detail here]]. If the funding source stays the same but the scenario changes or the restrictions are no longer met new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; must be requested. The process to do that is [[#Changing the token payment scenario with an existing token|described here]].&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of Recurring payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this case, three extra conditions must be met:&lt;br /&gt;
* the amount of the subsequent payment must not be higher than the initial amount&lt;br /&gt;
* at least that much days must be spent as defined in the initial &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; property&lt;br /&gt;
* the date of the payment must not exceed the day specified in the initial &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt; property&lt;br /&gt;
&lt;br /&gt;
Please be aware that in case any of these are no longer valid the merchant has to request a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; as [[#Changing the token payment scenario with an existing token|described here]]. &lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=IMPORTANT|text=These conditions are not enforced by the Barion system so the violation of them will result in a declined charge.|color=#FF7A3D}}&lt;br /&gt;
&lt;br /&gt;
Payment/start must not include the &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt; properties (since they are already fixed during the initial payment).&lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent Recurring payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-8&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;RecurringPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the second month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8,11&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: null,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The structure of the response is the same as the normal &amp;lt;tt&amp;gt;/Payment/Start&amp;lt;/tt&amp;gt; response just the statuses will be different. In this case&lt;br /&gt;
* the payment level &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Succeeded&#039;&#039;&#039; instead of &#039;&#039;&#039;Prepared&#039;&#039;&#039;&lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Successful&#039;&#039;&#039; (or &#039;&#039;&#039;Failed&#039;&#039;&#039;) instead of &#039;&#039;&#039;None&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The value of the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be the same as in the request.&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of Merchant Initiated Payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this scenario there are no restrictions.&lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent Merchant Initiated Payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-8&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;KBYRR55322844552124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 75,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Usage fee for 2020/12&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Phone bill&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Usage fee for 2020/12&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 75,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 75,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8,11&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: null,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;KBYRR55322844552124780&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The structure of the response is the same as the normal &amp;lt;tt&amp;gt;/Payment/Start&amp;lt;/tt&amp;gt; response just the statuses will be different. In this case&lt;br /&gt;
* the payment level &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Succeeded&#039;&#039;&#039; instead of &#039;&#039;&#039;Prepared&#039;&#039;&#039;&lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Successful&#039;&#039;&#039; (or &#039;&#039;&#039;Failed&#039;&#039;&#039;) instead of &#039;&#039;&#039;None&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The value of the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be the same as in the request.&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of OneClick Payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this scenario, the merchant has to prepare to perform the [[#Off-site 3DS v2 authentication|off-site 3DS v2 authentication]] of the payer. 3DS authentication is not required in the following cases:&lt;br /&gt;
* the token (&amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;) was requested before 3DS came into effect,&lt;br /&gt;
* the original payment was not initialized by bank card,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is not used in this scenario since the payer is present during the transaction. &lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent OneClick Payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;OneClickPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 17,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Book: How to shop online&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;How to shop online&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Book about shopping online&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;piece&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 17,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 17,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
In this scenario, the response contains the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; property that is used to perform an [[#Off-site 3DS v2 authentication|off-site 3DS v2 authentication]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8-9&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: &amp;quot;ewoJIkNhcmRQdWJs...WZXJzaW9uIjogIjIuMS4wIgp9Cg==&amp;quot;,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Possible error responses for the subsequent payment requests ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| InvalidRecurrenceId|| The token specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is invalid. Check if the token registration was successful.&lt;br /&gt;
|-&lt;br /&gt;
| RecurringPaymentDenied|| Something happened to the user since the token registration, either deleted, suspended, or blocked. The payment s not allowed in these cases.&lt;br /&gt;
|-&lt;br /&gt;
| InsufficientFunds|| If the original payment was with an e-money wallet and the customer doesn&#039;t have enough money to fulfill this charge this error happens.&lt;br /&gt;
|-&lt;br /&gt;
| OriginalPaymentWasntSuccessful || This means that the token belongs to an originally unsuccessful payment so this token can not be used anymore. This could only happen if the original payment was financed with a credit card.&lt;br /&gt;
|-&lt;br /&gt;
|InvalidCurrency || If the original payment was paid with e-money and the current token payment is in a currency that the wallet does not have an account in this error happens.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is the request-response diagram of the subsequent payments:&lt;br /&gt;
&lt;br /&gt;
[[File:Token_payment_2.png]]&lt;br /&gt;
&lt;br /&gt;
= Changing funding source or token scenarios =&lt;br /&gt;
&lt;br /&gt;
==Changing the funding source==&lt;br /&gt;
&lt;br /&gt;
This could happen if the funding source becomes invalid for some reason (card gets deleted or expires) or the merchant decides to use that token for another payer. In this case, the merchant has to register the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; again. &lt;br /&gt;
To do this a new payment must be started and in the [[Payment-Start-v2|Payment/Start]] request the following setup should be specified:&lt;br /&gt;
* the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; field has to be set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; &lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; has to be specified.&lt;br /&gt;
* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; should not be specified.&lt;br /&gt;
&lt;br /&gt;
[[File:Funding-source-change.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
Since the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is bound to the payer and the process if the funding source changes new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be generated. This new ID must be saved to this payment and must be used from this moment on for subsequent payments.&lt;br /&gt;
&lt;br /&gt;
==Changing the token payment scenario with an existing token==&lt;br /&gt;
&lt;br /&gt;
This could occur when the merchant wants to get authorization from the payer to a new token scenario for the already registered funding source. To be able to do this the merchant has to have a valid and registered &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;.&lt;br /&gt;
Let&#039;s see some examples when this may be necessary:&lt;br /&gt;
* The payer subscribed to the merchant&#039;s service beforehand and the merchant decided to use the recurring payment token scenario. The payer wants to subscribe to another service and this requires a different payment schedule. This means that the &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; that was specified initially can not be maintained so it is required to acquire a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;&lt;br /&gt;
* The payer bought something on the merchant&#039;s website and uses the one-click feature for subsequent fast non-redirect payments. After a while, the payer decides to subscribe to a service provided by this same merchant. This means that the merchant has to create a new token scenario (not a one-click payment but a recurring payment). For this, the merchant has to acquire a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;. This can be done without redirecting the payer to Barion using the existing &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; and performing a 3DS authentication on the merchant&#039;s website.&lt;br /&gt;
&lt;br /&gt;
To do these a new payment must be started and in the [[Payment-Start-v2|Payment/Start]] request the following setup should be specified:&lt;br /&gt;
* the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; field has to be set to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; &lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; has to be specified.&lt;br /&gt;
* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; should not be specified.&lt;br /&gt;
&lt;br /&gt;
After this, a 3DS authentication has to be completed to acquire a new trace ID. This can be done on the merchant&#039;s site if the merchant implements the barion.offsitegw.js for off-site 3DS authentication.&lt;br /&gt;
&lt;br /&gt;
This means that it can be achieved to acquire different Trace IDs for different scenarios with only one &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;.&lt;br /&gt;
This is basically categorizing the different token scenarios as opposed to using every subsequent payment as an unmarked charge.&lt;br /&gt;
&lt;br /&gt;
[[File:Mutiple-traceid.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
= Off-site 3DS v2 authentication =&lt;br /&gt;
&lt;br /&gt;
In certain scenarios, the payer has to be authenticated to lower the risk of the card transaction. This can be either performed &lt;br /&gt;
* on the Barion Smart Gateway (on-site) by redirecting the customer to Barion &lt;br /&gt;
* or on the merchant&#039;s website (off-site) by integrating the Barion Off-site client library.&lt;br /&gt;
&lt;br /&gt;
This section describes how to integrate the Barion off-site authentication library into the merchant&#039;s site.&lt;br /&gt;
&lt;br /&gt;
== Step 1 : Initialize the off-site authentication library  ==&lt;br /&gt;
You have to include the following css and javascript files in the code of your site. &lt;br /&gt;
&amp;lt;source lang=html&amp;gt;&lt;br /&gt;
&amp;lt;link href=&amp;quot;https://secure.barion.com/static/barion.offsitegw.min.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;https://secure.barion.com/static/barion.offsitegw.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/source &amp;gt;&lt;br /&gt;
These files include all the necessary javascript code and styling to handle the 3DS authentication and display the challenge if necessary.&lt;br /&gt;
&lt;br /&gt;
Then you have to initialize the Barion javascript client. To do that, you have to define a configuration object that specifies your functions that handle the off-site authentication events. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Authentication events&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;onAuthenticationSucceeded&amp;lt;/code&amp;gt;: the 3DS v2 authentication successfully completed&lt;br /&gt;
* &amp;lt;code&amp;gt;onAuthenticationFailed&amp;lt;/code&amp;gt;:  the 3DS v2 authentication failed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
const configuration = {&lt;br /&gt;
    onAuthenticationSucceeded: function () {&lt;br /&gt;
        // handle successful authentication by calling the Barion API via merchant&#039;s backend&lt;br /&gt;
        // Call the v2/payment/complete endpoint&lt;br /&gt;
    },&lt;br /&gt;
    onAuthenticationFailed: function () {&lt;br /&gt;
        // Handle unsuccessful authentication result, no charge was made.&lt;br /&gt;
        // The payment might be still valid only the authentication failed&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you have to pass this config object to the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
const gw = new Barion.OffsiteGw(configuration);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Start the authentication process ===&lt;br /&gt;
Once the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; is acquired from the payment/start you can start the authentication process by calling the &amp;lt;code&amp;gt;authenticate()&amp;lt;/code&amp;gt; method of the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
gw.authenticate(threeDsClientData);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will start the authentication process and present the challenge if needed. Visually this will create a modal window over the merchant&#039;s site and show the payer every necessary information.&lt;br /&gt;
Once the authentication process finished (either with or without a challenge) the appropriate event will be fired. &lt;br /&gt;
&lt;br /&gt;
== Step 3: Completing the payment ==&lt;br /&gt;
&lt;br /&gt;
In case of successful authentication, you have to call our [[Payment-Complete-v3|/Payment/Complete]] endpoint, where the actual charge will happen.&lt;br /&gt;
&lt;br /&gt;
=== Possible error responses for the subsequent payment requests ===&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
== Suggested implementation flow for off-site authentication ==&lt;br /&gt;
&lt;br /&gt;
Ideally, an off-site authentication should be part of a client-side experience without any postbacks or page reloads. This is our recommendation to achieve this:&lt;br /&gt;
&lt;br /&gt;
# After the customer clicks on the &amp;quot;Pay&amp;quot; button make an AJAX call from your client-side code to your back-end. &lt;br /&gt;
# Have your backend make a request to our payment/start endpoint (with the appropriate settings for the desired token scenario)&lt;br /&gt;
# Have your backend process the response and pass the value of the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; property to your client-side code.&lt;br /&gt;
# Use the Barion off-site library to perform the authentication&lt;br /&gt;
# Once the authentication succeeds send another AJAX request from your client-side code to your back-end.&lt;br /&gt;
# Have your back-end code call our [[Payment-Complete-v3|/Payment/Complete]]&lt;br /&gt;
# Have your backend process the response and pass the result to your client-side code.&lt;br /&gt;
# Display the result for the customer&lt;br /&gt;
&lt;br /&gt;
= Testing the integration =&lt;br /&gt;
&lt;br /&gt;
3D Secure has no environment for end-to-end testing, therefore merchants have to split their testings into two parts: Testing the payment flow with and without challenge. Getting a challenge is only possible with real-life cards, merchants have to use their own (there will be no real charging at the end on the Sandbox of the Payment Gateway, but using a real card will result initiating a real 3DS authentication).&lt;br /&gt;
&lt;br /&gt;
== Testing the whole payment flow, without challenge ==&lt;br /&gt;
&lt;br /&gt;
Use the OTP test cards (to-be-defined), they will always get a &amp;quot;frictionless&amp;quot; flow, where the 3DS process is presented on the UI, but you will never see a challenge screen. &lt;br /&gt;
&lt;br /&gt;
This is good for testing your integration itself because it will lead to a successful charge, and you will get a TraceId as well.&lt;br /&gt;
&lt;br /&gt;
== Testing the challenge itself ==&lt;br /&gt;
&lt;br /&gt;
Use your own card, and let the card issuer decide whether your payment will get a challenge or not during the 3DS authentication procedure. Your payment will fail at the end, and you won&#039;t get the TraceId. &lt;br /&gt;
&lt;br /&gt;
This is good to test, how the challenge screens look like in your shop - especially when you integrated OneClick payment directly to your shop. You might also check how your customers see your checkout flow on popular devices.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Token_payment_3D_Secure&amp;diff=2877</id>
		<title>Token payment 3D Secure</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Token_payment_3D_Secure&amp;diff=2877"/>
		<updated>2020-11-26T15:07:49Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Testing the integration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=Token Payment with 3D Secure}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{IncompletePage}}&lt;br /&gt;
&lt;br /&gt;
This payment scenario allows the integrator shop to register a token for a customer (and a funding source) in the Barion system and then, later on, using this token, charge the customer without redirecting her to the Barion Smart Gateway UI. The user may be present at the site of the merchant or she can be off-session as well, so the merchant can charge her e.g. for subscriptions. This means that the customer authorizes the shop to charge her card or Barion balance without typing in the card information or Barion login again.&lt;br /&gt;
&lt;br /&gt;
[[File:3ds-recurring.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=Premium feature|text=This scenario is not allowed automatically for every approved shop and should be requested from Barion!|color=#1993c7}}&lt;br /&gt;
&lt;br /&gt;
= Token payment scenarios =&lt;br /&gt;
Token payment can be used in three use cases: &lt;br /&gt;
* &#039;&#039;&#039;Customer Initiated Payments&#039;&#039;&#039;: when the user is present on the website of the merchant and she decides to pay :&lt;br /&gt;
** &#039;&#039;&#039;OneClick payment&#039;&#039;&#039;: the user is charged upon her request initiated on the website of the merchant. Subsequent payments are subject to PSD2 SCA and as the user is present, she has to go through the authentication process.&lt;br /&gt;
* &#039;&#039;&#039;Merchant Initiated Payments&#039;&#039;&#039;: when the merchant initiates the payment without the user being present. It has two subtypes:&lt;br /&gt;
** &#039;&#039;&#039;Recurring payment&#039;&#039;&#039;: the user is charged with the same amount on a regular basis, typically in case of subscriptions. Subsequent payments are exempted from PSD2 SCA, but liability still shifts to the card issuer.&lt;br /&gt;
** &#039;&#039;&#039;MIT (merchant initiated transaction)&#039;&#039;&#039;: the user is charged on an irregular basis and/or with a different amount. Subsequent payments of this type are excluded from PSD2 SCA, the liability is on the merchant.&lt;br /&gt;
&lt;br /&gt;
== Customer participation ==&lt;br /&gt;
&lt;br /&gt;
Since the token scenario is suitable for both customer and merchant initiated payments here is a comparison about who starts the payment. This includes the regular, non-tokenized payment scenario as well:&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
! rowspan=&amp;quot;2&amp;quot; | Scenario&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | Initial payment&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | Subsequent payments&lt;br /&gt;
|-&lt;br /&gt;
! Customer present&lt;br /&gt;
! Customer at Barion Smart GW &lt;br /&gt;
! Customer present&lt;br /&gt;
! Customer at Barion Smart GW&lt;br /&gt;
|-&lt;br /&gt;
| Non token (regular) payment || YES || YES || YES || YES &lt;br /&gt;
|-&lt;br /&gt;
| OneClick payment || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || YES || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || style=&amp;quot;background:#FFE2C4&amp;quot; | NO || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
| MIT || YES || YES/NO&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; || style=&amp;quot;background:#FFE2C4&amp;quot; | NO || style=&amp;quot;background:#FFE2C4&amp;quot; | NO &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #aaa; background-color:#eee; font-size: 0.8em; padding:5px 10px; display:inline-block;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; Token payment scenarios can be initiated with already registered &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; as well, in this case the customer may remain on the merchant&#039;s site. &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Requirements for the scenarios ==&lt;br /&gt;
&lt;br /&gt;
These token payment scenarios have different requirements, this table below summarizes the key differences.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Scenario&lt;br /&gt;
! Payment amount&lt;br /&gt;
! Payment frequency&lt;br /&gt;
! Liability in case of fraud&lt;br /&gt;
|-&lt;br /&gt;
| OneClick payment || Various || Various || Card issuer&lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || Subsequent amounts must be equal or less than the initial amount  || Initial payment must define a minimum amount of days to wait between charges || Card issuer &lt;br /&gt;
|-&lt;br /&gt;
| Merchant initiated payment || Various  || Various || Merchant&lt;br /&gt;
|- &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 3DS authentication of the payer ==&lt;br /&gt;
&lt;br /&gt;
The new more secure 3DS v2 authentication must be performed for every online card payment. These token payment scenarios also have to use this new secure way of authentication. &lt;br /&gt;
The initial payment of a token scenario must be authenticated every time although the subsequent payments may be exempted in certain cases. &lt;br /&gt;
&lt;br /&gt;
Here is a table to compare the 3DS authentication requirements:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Scenario&lt;br /&gt;
! Initial payment&lt;br /&gt;
! Subsequent payments&lt;br /&gt;
|-&lt;br /&gt;
| One-click payment || ✔️ || ✔️&lt;br /&gt;
|-&lt;br /&gt;
| Recurring payment || ✔️ || &lt;br /&gt;
|-&lt;br /&gt;
| Merchant initiated payment || ✔️ || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Real life examples ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Phone bill&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Payer has a usage-based phone subscription that wants to pay without being present for every charge. She authorizes the phone company to charge her card every month.&lt;br /&gt;
* Scenario: Merchant Initiated Transaction&lt;br /&gt;
* Explanation: Despite the frequency of the charges is monthly, the amount of the subsequent payments may exceed the initial payment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TV subscription&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Payer subscribes to online streaming of a television channel. She authorizes the phone company to charge her card every month. The subscription fee is the same for every month.&lt;br /&gt;
* Scenario: Recurring payment&lt;br /&gt;
* Explanation: The amount of the subsequent payments will not exceed the initial payment and the charge is regularly monthly-based.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bookclub with &amp;quot;free first month&amp;quot; bonus&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Payer subscribes to a book renting service. She authorizes the book club to charge her card every month for a selection of books. The subscription fee is the same for every month however, the first month is free. To ensure the subscription the service requires her to register her card details.&lt;br /&gt;
* Scenario: Merchant Initiated Transaction&lt;br /&gt;
* Explanation: Despite the frequency of the charges is monthly, and the fee will stay the same, the initial payment is zero. So the amount of the next payment will exceed the initial payment.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Online food delivery service&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The food delivery company wants to provide a quick and easy experience for its customer. They decide that the order will be quicker if the customers don&#039;t leave the website to pay for the goods.&lt;br /&gt;
* Scenario: OneClick payment&lt;br /&gt;
* Explanation: The customer will always be there so the other two scenarios are not available.&lt;br /&gt;
&lt;br /&gt;
== How to decide ==&lt;br /&gt;
&lt;br /&gt;
To help you decide on a suitable scenario, please use the decision graph below:&lt;br /&gt;
&lt;br /&gt;
[[File:3ds-recurrencetype-decision.png|520px]]&lt;br /&gt;
&lt;br /&gt;
= Prerequisites =&lt;br /&gt;
To be able to integrate your webshop with the Barion Payment Gateway: &lt;br /&gt;
* You must [[Creating_an_account|register a Barion wallet]] at the Barion website or in the Sandbox environment. Learn more about the Sandbox environment [[Sandbox|here]].&lt;br /&gt;
* For this wallet you have to [[Creating_a_shop|create a shop]] which should be approved by Barion.&lt;br /&gt;
* For every currency you plan to conduct payments in you have to make sure there is an account created in your Barion wallet. This means that if you plan to have USD payments then there should be a USD account created in your wallet.&lt;br /&gt;
* To make sure every corner case scenario works for your webshop it is best to top up that account with a small amount (approx. 5-10EUR or your choice of currency around the same value).&lt;br /&gt;
* For the technical communication guide please read this: [[Calling_the_API|Calling the API]]&lt;br /&gt;
&lt;br /&gt;
= The payment process =&lt;br /&gt;
&lt;br /&gt;
The process is divided into two major steps:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
   &amp;lt;li&amp;gt;[[#Step 1:  Creating the funding source token|Creating the token]] that represents one of the customer&#039;s funding sources (credit card or e-money wallet)&lt;br /&gt;
      &amp;lt;ol&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Preparing the payment via the Barion API&amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Redirecting the customer to the Barion Smart Gateway to select a funding source&amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li&amp;gt;Processing the callback and requesting information about the result of the payment&amp;lt;/li&amp;gt;&lt;br /&gt;
      &amp;lt;/ol&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li&amp;gt;[[#Step 2: Using the token|Using the registered token]] to charge the customer&amp;lt;/li&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 1:  Creating the funding source token ==&lt;br /&gt;
To be able to use a token payment scenario first the merchant has to register the token with Barion. The merchant has to make sure that the customer is well aware of the fact that they are giving consent to a tokenized payment. The Barion Smart Gateway UI does not indicate in any way that the payment is a token payment.&lt;br /&gt;
&lt;br /&gt;
The token is registered to the shop and not to the merchant&#039;s Barion account. So if the merchant has multiple shops in its Barion account, the registered tokens can not be shared among them even if the customer is the same. If you want to use tokens in multiple shops, please contact Barion in the Customer center.&lt;br /&gt;
&lt;br /&gt;
=== 1.1 Preparing the payment===&lt;br /&gt;
&lt;br /&gt;
The token registration is basically a [[Responsive_web_payment|normal payment]] with three extra properties in the [[Payment-Start-v2|Payment/Start]] request:&lt;br /&gt;
* InitiateRecurrence&lt;br /&gt;
* RecurrenceId&lt;br /&gt;
* RecurrenceType&lt;br /&gt;
&lt;br /&gt;
==== InitiateRecurrence====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; property is a bool property. If you set it to &#039;&#039;&#039;true&#039;&#039;&#039; then the payment gateway will consider the payment as a token registration. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This happens even if the customer is already has a registered token, so you are able to re-register a funding source or even a customer. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceId ====&lt;br /&gt;
The next required property for a token registration is the token itself. This is generated by the shop and has to be unique for every registration. The token should be specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; property of the [[Payment-Start-v2|Payment/Start]] request. This token must be saved in the webshops database. A &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; token represents the funding source (bank card or Barion balance) of a customer. Since a customer can have multiple cards and accounts as a funding source make sure that in the webshop&#039;s system multiple tokens can belong to a single customer.&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceType ====&lt;br /&gt;
The third required property is the [[RecurrenceType|Recurrence Type]]. This specifies the scenario. In case of Recurring Payment &amp;lt;code&amp;gt;PurchaseInformation.RecurringExpiry&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PurchaseInformation.RecurringFrequency&amp;lt;/code&amp;gt; must also be set.&lt;br /&gt;
&lt;br /&gt;
==== Example JSON request for a Merchant Initiated Payment scenario ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: true,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the first month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-01&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response will be the same as to a [[Responsive_web_payment#Processing_the_successful_response|basic &#039;&#039;&#039;Immediate&#039;&#039;&#039; scenario]]. The &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; property at this point is &#039;&#039;&#039;None&#039;&#039;&#039; since the token is not registered to a funding source yet.&lt;br /&gt;
&lt;br /&gt;
==== Example JSON request for a Recurring Payment scenario ====&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Recurring Payment&#039;&#039;&#039; scenario has some extra restrictions. The merchant has to specify two additional properties in the [[Payment-Start-v2|Payment/Start]] request:&lt;br /&gt;
* &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt;: The date after the subsequent charges should not accepted.&lt;br /&gt;
* &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt;: The minimum days the merchant has to wait between payments.&lt;br /&gt;
&lt;br /&gt;
Both properties are located in the [[PurchaseInformation]] property and must be specified if this scenario is selected.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7, 30-33&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: true,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;RecurringPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the first month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-01&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;PurchaseInformation&amp;quot;:{&lt;br /&gt;
        &amp;quot;RecurringFrequency&amp;quot;: 10,&lt;br /&gt;
        &amp;quot;RecurringExpiry&amp;quot;: &amp;quot;2022-10-01&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Possible error responses ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| RecurringPaymentNotAllowed || The token payment is not allowed for the shop identified by the &#039;&#039;&#039;POSKey&#039;&#039;&#039;. Contact Barion to request this feature.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 1.2 Redirecting the customer to the Barion Smart Gateway to select a funding source ===&lt;br /&gt;
&lt;br /&gt;
After a successful payment preparation, the customer is redirected to the secure Barion Smart Gateway to choose a funding source. The funding source the customer selects will be registered to the token. The funding source can either be a Barion e-money balance or a bank card. This means that even though the customer may own multiple cards only the one that was registered to the token can be used for future token payments. To change the funding source attached to the token a new registration should be requested.&lt;br /&gt;
&lt;br /&gt;
=== 1.3 Processing the callback and requesting information about the result of the payment ===&lt;br /&gt;
&lt;br /&gt;
When the payment is completed (either successfully or unsuccessfully) a callback message is sent to the merchant&#039;s system. Once received a [[Payment-GetPaymentState-v2|GetPaymentState]] request must be sent to the Barion API. On how to implement this please read the article about the  [[Callback_mechanism|Callback mechanism]].&lt;br /&gt;
&lt;br /&gt;
The full response of the GetPaymentState request depends on the payment scenario and the structure of the payment. When it comes to token payment there are several properties to look out for. &lt;br /&gt;
* In case the &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; is &#039;&#039;&#039;Succeeded&#039;&#039;&#039; the funding source token is registered and ready to use.&lt;br /&gt;
* The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; contains the ID of the token process. This specifies the nature of the token payment. &lt;br /&gt;
&lt;br /&gt;
==== TraceId ====&lt;br /&gt;
&lt;br /&gt;
In case of Recurring payment or Merchant initiated payment scenarios the [[Payment-GetPaymentState-v2|GetPaymentState]] response returns an additional field called &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;. The value of this property is generated by the card issuer. The merchant has to save it and submit it in all subsequent Recurring or Merchant initiated payments of the same type, otherwise, the payments can be declined by the issuer. The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; represents the first, customer-present payment and helps the issuer to connect subsequent payments to this initial payment.&lt;br /&gt;
&lt;br /&gt;
====Example GetPaymentState response====&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;8, 11-12&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-001&amp;quot;,&lt;br /&gt;
    &amp;quot;OrderNumber&amp;quot;: null,&lt;br /&gt;
    &amp;quot;POSId&amp;quot;: &amp;quot;[[SHOPS_PUBLIC_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;POSName&amp;quot;: &amp;quot;[[MERCHANTS_BARION_SHOPNAME]]&amp;quot;,&lt;br /&gt;
    &amp;quot;POSOwnerEmail&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSource&amp;quot;: &amp;quot;BankCard&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingInformation&amp;quot;: {&lt;br /&gt;
        &amp;quot;BankCard&amp;quot;: {&lt;br /&gt;
            &amp;quot;MaskedPan&amp;quot;: &amp;quot;0425&amp;quot;,&lt;br /&gt;
            &amp;quot;BankCardType&amp;quot;: &amp;quot;Visa&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruYear&amp;quot;: &amp;quot;2020&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruMonth&amp;quot;: &amp;quot;12&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;AuthorizationCode&amp;quot;: &amp;quot;512244&amp;quot;,&lt;br /&gt;
        &amp;quot;ProcessResult&amp;quot;: &amp;quot;Successful&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;AllowedFundingSources&amp;quot;: [&lt;br /&gt;
        &amp;quot;All&amp;quot;&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;GuestCheckout&amp;quot;: true,&lt;br /&gt;
    &amp;quot;CreatedAt&amp;quot;: &amp;quot;2020-11-26T07:52:48.9Z&amp;quot;,&lt;br /&gt;
    &amp;quot;ValidUntil&amp;quot;: &amp;quot;2020-11-26T08:22:48.9Z&amp;quot;,&lt;br /&gt;
    &amp;quot;CompletedAt&amp;quot;: &amp;quot;2020-11-26T08:11:54.118Z&amp;quot;,&lt;br /&gt;
    &amp;quot;ReservedUntil&amp;quot;: null,&lt;br /&gt;
    &amp;quot;DelayedCaptureUntil&amp;quot;: null,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
           ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;Total&amp;quot;: 25.20,&lt;br /&gt;
    &amp;quot;SuggestedLocale&amp;quot;: &amp;quot;hu-HU&amp;quot;,&lt;br /&gt;
    &amp;quot;FraudRiskScore&amp;quot;: null,&lt;br /&gt;
    &amp;quot;RedirectUrl&amp;quot;: &amp;quot;https://merchanturl/Redirect?paymentId=2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;CallbackUrl&amp;quot;: &amp;quot;https://merchanturl/Callback?paymentId=2a9f3260bc2feb118bc3001dd8b71cc4&amp;quot;,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Displaying the funding source in a GUI ====&lt;br /&gt;
We strongly advise saving the complete response for future reference. The &amp;lt;code&amp;gt;FundingSource&amp;lt;/code&amp;gt; field tells if the funding source is a Barion balance or a card. If it is a card, it is useful to save [[FundingInformation]] for displaying it for the user, when requesting future payments. The usual way to display funding sources is to show the last 4 digits of the card, with 4 stars, eg: *** 1234. The card used can be obtained from FundingInformation&#039;s [[BankCard]] field. The [[CardType]] field can be used to display the appropriate card logo. You can even show, if the card is expired, and offer to register another one.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; FundingInformation part of the GetPaymentState response &#039;&#039;&#039;&lt;br /&gt;
&amp;lt;source lang=json&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
    &amp;quot;FundingInformation&amp;quot;: {&lt;br /&gt;
        &amp;quot;BankCard&amp;quot;: {&lt;br /&gt;
            &amp;quot;MaskedPan&amp;quot;: &amp;quot;0425&amp;quot;,&lt;br /&gt;
            &amp;quot;BankCardType&amp;quot;: &amp;quot;Visa&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruYear&amp;quot;: &amp;quot;2020&amp;quot;,&lt;br /&gt;
            &amp;quot;ValidThruMonth&amp;quot;: &amp;quot;12&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;AuthorizationCode&amp;quot;: &amp;quot;512244&amp;quot;,&lt;br /&gt;
        &amp;quot;ProcessResult&amp;quot;: &amp;quot;Successful&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be displayed for example as &amp;lt;code&amp;gt;VISA **** 0425 (12/20)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a request-response diagram of the token registration process:&lt;br /&gt;
 &lt;br /&gt;
[[File:Token_payment_initiation.jpg]]&lt;br /&gt;
&lt;br /&gt;
= Step 2: Using the token =&lt;br /&gt;
&lt;br /&gt;
To use an already registered token for a payment, you have to use the same [[Payment-Start-v2|/Payment/Start]] API endpoint but the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; should be set to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;. This tells the Barion API to use the token for payment instead of only registering it. The token should be specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; property. To be able to use a token, the initial payment must be in a successful state.&lt;br /&gt;
&lt;br /&gt;
At this point, the merchant has to decide whether this subsequent payment is used for the same token payment scenario or something changed. This is important because the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; can only be used for the same scenario, otherwise, the card issuer will decline the charge.&lt;br /&gt;
A &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; can only be used again if:&lt;br /&gt;
* the funding source is the same (technically the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is the same)&lt;br /&gt;
* the token payment scenario is the same (technically the &amp;lt;code&amp;gt;RecurrenceType&amp;lt;/code&amp;gt; is the same)&lt;br /&gt;
* this subsequent request complies with the scenario restrictions (eg: in case of recurring payment the amount of the subsequent payment does not exceed the initial amount)&lt;br /&gt;
&lt;br /&gt;
If the funding source changes, new &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; must be requested. The process to do that is [[#Changing the funding source|described in detail here]]. If the funding source stays the same but the scenario changes or the restrictions are no longer met new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; must be requested. The process to do that is [[#Changing the token payment scenario with an existing token|described here]].&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of Recurring payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this case, three extra conditions must be met:&lt;br /&gt;
* the amount of the subsequent payment must not be higher than the initial amount&lt;br /&gt;
* at least that much days must be spent as defined in the initial &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; property&lt;br /&gt;
* the date of the payment must not exceed the day specified in the initial &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt; property&lt;br /&gt;
&lt;br /&gt;
Please be aware that in case any of these are no longer valid the merchant has to request a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; as [[#Changing the token payment scenario with an existing token|described here]]. &lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=IMPORTANT|text=These conditions are not enforced by the Barion system so the violation of them will result in a declined charge.|color=#FF7A3D}}&lt;br /&gt;
&lt;br /&gt;
Payment/start must not include the &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RecurringExpiry&amp;lt;/code&amp;gt; properties (since they are already fixed during the initial payment).&lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent Recurring payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-8&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;RecurringPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 25.2,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Subscription fee for the second month&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Website subscription&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Website subscription for one month&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 25.2,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8,11&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: null,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;FGTRR55322843442124780&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The structure of the response is the same as the normal &amp;lt;tt&amp;gt;/Payment/Start&amp;lt;/tt&amp;gt; response just the statuses will be different. In this case&lt;br /&gt;
* the payment level &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Succeeded&#039;&#039;&#039; instead of &#039;&#039;&#039;Prepared&#039;&#039;&#039;&lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Successful&#039;&#039;&#039; (or &#039;&#039;&#039;Failed&#039;&#039;&#039;) instead of &#039;&#039;&#039;None&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The value of the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be the same as in the request.&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of Merchant Initiated Payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this scenario there are no restrictions.&lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent Merchant Initiated Payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-8&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;MerchantInitiatedPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;KBYRR55322844552124780&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 75,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Usage fee for 2020/12&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;Phone bill&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Usage fee for 2020/12&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;month&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 75,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 75,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8,11&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: null,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;TraceId&amp;quot;: &amp;quot;KBYRR55322844552124780&amp;quot;,&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The structure of the response is the same as the normal &amp;lt;tt&amp;gt;/Payment/Start&amp;lt;/tt&amp;gt; response just the statuses will be different. In this case&lt;br /&gt;
* the payment level &amp;lt;code&amp;gt;Status&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Succeeded&#039;&#039;&#039; instead of &#039;&#039;&#039;Prepared&#039;&#039;&#039;&lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; will be &#039;&#039;&#039;Successful&#039;&#039;&#039; (or &#039;&#039;&#039;Failed&#039;&#039;&#039;) instead of &#039;&#039;&#039;None&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The value of the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be the same as in the request.&lt;br /&gt;
&lt;br /&gt;
== Subsequent payments in case of OneClick Payment scenario ==&lt;br /&gt;
&lt;br /&gt;
In this scenario, the merchant has to prepare to perform the [[#Off-site 3DS v2 authentication|off-site 3DS v2 authentication]] of the payer. 3DS authentication is not required in the following cases:&lt;br /&gt;
* the token (&amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;) was requested before 3DS came into effect,&lt;br /&gt;
* the original payment was not initialized by bank card,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is not used in this scenario since the payer is present during the transaction. &lt;br /&gt;
&lt;br /&gt;
==== Example payment/start of a subsequent OneClick Payment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;5-7&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;POSKey&amp;quot;: &amp;quot;[[SECRET_POS_KEY]]&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;InitiateRecurrence&amp;quot;: false,&lt;br /&gt;
    &amp;quot;RecurrenceId&amp;quot;: &amp;quot;SHOP-XMLP-TOKEN-ABC-123&amp;quot;,&lt;br /&gt;
    &amp;quot;RecurrenceType&amp;quot;: &amp;quot;OneClickPayment&amp;quot;,&lt;br /&gt;
    &amp;quot;FundingSources&amp;quot;: [&amp;quot;All&amp;quot;],&lt;br /&gt;
    &amp;quot;GuestCheckOut&amp;quot; : true,&lt;br /&gt;
    &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;POSTransactionId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002/TR001&amp;quot;,&lt;br /&gt;
            &amp;quot;Payee&amp;quot;: &amp;quot;[[MERCHANTS_BARION_EMAIL]]&amp;quot;,&lt;br /&gt;
            &amp;quot;Total&amp;quot;: 17,&lt;br /&gt;
            &amp;quot;Comment&amp;quot;: &amp;quot;Book: How to shop online&amp;quot;,&lt;br /&gt;
            &amp;quot;Items&amp;quot;: [&lt;br /&gt;
                {&lt;br /&gt;
                    &amp;quot;Name&amp;quot;: &amp;quot;How to shop online&amp;quot;,&lt;br /&gt;
                    &amp;quot;Description&amp;quot;: &amp;quot;Book about shopping online&amp;quot;,&lt;br /&gt;
                    &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
                    &amp;quot;Unit&amp;quot;: &amp;quot;piece&amp;quot;,&lt;br /&gt;
                    &amp;quot;UnitPrice&amp;quot;: 17,&lt;br /&gt;
                    &amp;quot;ItemTotal&amp;quot;: 17,&lt;br /&gt;
                    &amp;quot;SKU&amp;quot;: &amp;quot;EXMPLSHOP/SKU/PHC-02&amp;quot;&lt;br /&gt;
                }&lt;br /&gt;
            ]&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Example response to this request ====&lt;br /&gt;
&lt;br /&gt;
In this scenario, the response contains the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; property that is used to perform an [[#Off-site 3DS v2 authentication|off-site 3DS v2 authentication]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=json line highlight=&amp;quot;4,8-9&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;PaymentId&amp;quot;: &amp;quot;fb582913dc2feb11a49f309c23734b1c&amp;quot;,&lt;br /&gt;
    &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;EXMPLSHOP-PM-002&amp;quot;,&lt;br /&gt;
    &amp;quot;Status&amp;quot;: &amp;quot;Succeeded&amp;quot;,&lt;br /&gt;
    &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
        ...&lt;br /&gt;
    ],&lt;br /&gt;
    &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;Successful&amp;quot;,&lt;br /&gt;
    &amp;quot;ThreeDSAuthClientData&amp;quot;: &amp;quot;ewoJIkNhcmRQdWJs...WZXJzaW9uIjogIjIuMS4wIgp9Cg==&amp;quot;,&lt;br /&gt;
     ...&lt;br /&gt;
    &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Possible error responses for the subsequent payment requests ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable api-table&amp;quot;&lt;br /&gt;
! Error code || Description&lt;br /&gt;
|-&lt;br /&gt;
| InvalidRecurrenceId|| The token specified in the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is invalid. Check if the token registration was successful.&lt;br /&gt;
|-&lt;br /&gt;
| RecurringPaymentDenied|| Something happened to the user since the token registration, either deleted, suspended, or blocked. The payment s not allowed in these cases.&lt;br /&gt;
|-&lt;br /&gt;
| InsufficientFunds|| If the original payment was with an e-money wallet and the customer doesn&#039;t have enough money to fulfill this charge this error happens.&lt;br /&gt;
|-&lt;br /&gt;
| OriginalPaymentWasntSuccessful || This means that the token belongs to an originally unsuccessful payment so this token can not be used anymore. This could only happen if the original payment was financed with a credit card.&lt;br /&gt;
|-&lt;br /&gt;
|InvalidCurrency || If the original payment was paid with e-money and the current token payment is in a currency that the wallet does not have an account in this error happens.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is the request-response diagram of the subsequent payments:&lt;br /&gt;
&lt;br /&gt;
[[File:Token_payment_2.png]]&lt;br /&gt;
&lt;br /&gt;
= Changing funding source or token scenarios =&lt;br /&gt;
&lt;br /&gt;
==Changing the funding source==&lt;br /&gt;
&lt;br /&gt;
This could happen if the funding source becomes invalid for some reason (card gets deleted or expires) or the merchant decides to use that token for another payer. In this case, the merchant has to register the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; again. &lt;br /&gt;
To do this a new payment must be started and in the [[Payment-Start-v2|Payment/Start]] request the following setup should be specified:&lt;br /&gt;
* the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; field has to be set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; &lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; has to be specified.&lt;br /&gt;
* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; should not be specified.&lt;br /&gt;
&lt;br /&gt;
[[File:Funding-source-change.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
Since the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; is bound to the payer and the process if the funding source changes new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; will be generated. This new ID must be saved to this payment and must be used from this moment on for subsequent payments.&lt;br /&gt;
&lt;br /&gt;
==Changing the token payment scenario with an existing token==&lt;br /&gt;
&lt;br /&gt;
This could occur when the merchant wants to get authorization from the payer to a new token scenario for the already registered funding source. To be able to do this the merchant has to have a valid and registered &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;.&lt;br /&gt;
Let&#039;s see some examples when this may be necessary:&lt;br /&gt;
* The payer subscribed to the merchant&#039;s service beforehand and the merchant decided to use the recurring payment token scenario. The payer wants to subscribe to another service and this requires a different payment schedule. This means that the &amp;lt;code&amp;gt;RecurringFrequency&amp;lt;/code&amp;gt; that was specified initially can not be maintained so it is required to acquire a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;&lt;br /&gt;
* The payer bought something on the merchant&#039;s website and uses the one-click feature for subsequent fast non-redirect payments. After a while, the payer decides to subscribe to a service provided by this same merchant. This means that the merchant has to create a new token scenario (not a one-click payment but a recurring payment). For this, the merchant has to acquire a new &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt;. This can be done without redirecting the payer to Barion using the existing &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; and performing a 3DS authentication on the merchant&#039;s website.&lt;br /&gt;
&lt;br /&gt;
To do these a new payment must be started and in the [[Payment-Start-v2|Payment/Start]] request the following setup should be specified:&lt;br /&gt;
* the &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt; field has to be set to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; &lt;br /&gt;
* the &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; has to be specified.&lt;br /&gt;
* and the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; should not be specified.&lt;br /&gt;
&lt;br /&gt;
After this, a 3DS authentication has to be completed to acquire a new trace ID. This can be done on the merchant&#039;s site if the merchant implements the barion.offsitegw.js for off-site 3DS authentication.&lt;br /&gt;
&lt;br /&gt;
This means that it can be achieved to acquire different Trace IDs for different scenarios with only one &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;.&lt;br /&gt;
This is basically categorizing the different token scenarios as opposed to using every subsequent payment as an unmarked charge.&lt;br /&gt;
&lt;br /&gt;
[[File:Mutiple-traceid.png|1500px]]&lt;br /&gt;
&lt;br /&gt;
= Off-site 3DS v2 authentication =&lt;br /&gt;
&lt;br /&gt;
In certain scenarios, the payer has to be authenticated to lower the risk of the card transaction. This can be either performed &lt;br /&gt;
* on the Barion Smart Gateway (on-site) by redirecting the customer to Barion &lt;br /&gt;
* or on the merchant&#039;s website (off-site) by integrating the Barion Off-site client library.&lt;br /&gt;
&lt;br /&gt;
This section describes how to integrate the Barion off-site authentication library into the merchant&#039;s site.&lt;br /&gt;
&lt;br /&gt;
== Step 1 : Initialize the off-site authentication library  ==&lt;br /&gt;
You have to include the following css and javascript files in the code of your site. &lt;br /&gt;
&amp;lt;source lang=html&amp;gt;&lt;br /&gt;
&amp;lt;link href=&amp;quot;https://secure.barion.com/static/barion.offsitegw.min.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;https://secure.barion.com/static/barion.offsitegw.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/source &amp;gt;&lt;br /&gt;
These files include all the necessary javascript code and styling to handle the 3DS authentication and display the challenge if necessary.&lt;br /&gt;
&lt;br /&gt;
Then you have to initialize the Barion javascript client. To do that, you have to define a configuration object that specifies your functions that handle the off-site authentication events. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Authentication events&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;onAuthenticationSucceeded&amp;lt;/code&amp;gt;: the 3DS v2 authentication successfully completed&lt;br /&gt;
* &amp;lt;code&amp;gt;onAuthenticationFailed&amp;lt;/code&amp;gt;:  the 3DS v2 authentication failed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
const configuration = {&lt;br /&gt;
    onAuthenticationSucceeded: function () {&lt;br /&gt;
        // handle successful authentication by calling the Barion API via merchant&#039;s backend&lt;br /&gt;
        // Call the v2/payment/complete endpoint&lt;br /&gt;
    },&lt;br /&gt;
    onAuthenticationFailed: function () {&lt;br /&gt;
        // Handle unsuccessful authentication result, no charge was made.&lt;br /&gt;
        // The payment might be still valid only the authentication failed&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you have to pass this config object to the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
const gw = new Barion.OffsiteGw(configuration);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Start the authentication process ===&lt;br /&gt;
Once the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; is acquired from the payment/start you can start the authentication process by calling the &amp;lt;code&amp;gt;authenticate()&amp;lt;/code&amp;gt; method of the library.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;&lt;br /&gt;
gw.authenticate(threeDsClientData);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will start the authentication process and present the challenge if needed. Visually this will create a modal window over the merchant&#039;s site and show the payer every necessary information.&lt;br /&gt;
Once the authentication process finished (either with or without a challenge) the appropriate event will be fired. &lt;br /&gt;
&lt;br /&gt;
== Step 3: Completing the payment ==&lt;br /&gt;
&lt;br /&gt;
In case of successful authentication, you have to call our [[Payment-Complete-v3|/Payment/Complete]] endpoint, where the actual charge will happen.&lt;br /&gt;
&lt;br /&gt;
=== Possible error responses for the subsequent payment requests ===&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
== Suggested implementation flow for off-site authentication ==&lt;br /&gt;
&lt;br /&gt;
Ideally, an off-site authentication should be part of a client-side experience without any postbacks or page reloads. This is our recommendation to achieve this:&lt;br /&gt;
&lt;br /&gt;
# After the customer clicks on the &amp;quot;Pay&amp;quot; button make an AJAX call from your client-side code to your back-end. &lt;br /&gt;
# Have your backend make a request to our payment/start endpoint (with the appropriate settings for the desired token scenario)&lt;br /&gt;
# Have your backend process the response and pass the value of the &amp;lt;code&amp;gt;ThreeDSAuthClientData&amp;lt;/code&amp;gt; property to your client-side code.&lt;br /&gt;
# Use the Barion off-site library to perform the authentication&lt;br /&gt;
# Once the authentication succeeds send another AJAX request from your client-side code to your back-end.&lt;br /&gt;
# Have your back-end code call our [[Payment-Complete-v3|/Payment/Complete]]&lt;br /&gt;
# Have your backend process the response and pass the result to your client-side code.&lt;br /&gt;
# Display the result for the customer&lt;br /&gt;
&lt;br /&gt;
= Testing the integration =&lt;br /&gt;
&lt;br /&gt;
3D Secure has no environment for end-to-end testing, therefore merchants have to split their testings into two parts: Testing the payment flow with and without challenge. Getting a challenge is only possible with real-life cards, merchants have to use their own (there will be no real charging at the end on the Sandbox of the Payment Gateway, but using a real card will result initiating a real 3DS authentication).&lt;br /&gt;
&lt;br /&gt;
== Testing the whole payment flow, without challenge ==&lt;br /&gt;
&lt;br /&gt;
Use the OTP test cards, they will always get a &amp;quot;frictionless&amp;quot; flow, where the 3DS process is presented on the UI, but you will never see a challenge screen. &lt;br /&gt;
&lt;br /&gt;
This is good for testing your integration itself because it will lead to a successful charge, and you will get a TraceId as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing the challenge itself ==&lt;br /&gt;
&lt;br /&gt;
Use your own card, and let the card issuer decide whether your payment will get a challenge or not during the 3DS authentication procedure. Your payment will fail at the end, and you won&#039;t get the TraceId. &lt;br /&gt;
&lt;br /&gt;
This is good to test, how the challenge screens look like in your shop - especially when you integrated OneClick payment directly to your shop. You might also check how your customers see your checkout flow on popular devices.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2805</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2805"/>
		<updated>2020-11-24T15:50:58Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding a payment method on Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
= TROUBLESHOOTING =&lt;br /&gt;
&lt;br /&gt;
== Error messages and actions ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The store is closed in the Barion system, payment is not allowed.&#039;&#039;&#039;&lt;br /&gt;
In this case your Barion Shop is not &#039;&#039;&#039;approved&#039;&#039;&#039; yet. If the POSKey you used is for the right shop, you have to wait until it is approved.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application not installed&#039;&#039;&#039;&lt;br /&gt;
The javascript code you pasted from here to the Shopify Checkout settings / Additional scripts field is most likely wrong. Keep in mind that the script is a bit different for the test/sandbox and for production.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=3DSecure&amp;diff=2675</id>
		<title>3DSecure</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=3DSecure&amp;diff=2675"/>
		<updated>2020-11-09T08:58:37Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=3DSecure}}&lt;br /&gt;
{{TableOfContents}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3D Secure (3DS, Three-Domain Secure) is a messaging protocol developed by [https://www.emvco.com EMVCo] to provide a more secure online card payment process. It enables consumers to authenticate themselves with their card issuer when making card-not-present (CNP) e-commerce purchases. &lt;br /&gt;
If the card is enrolled into 3DS authentication, additional information is required to decide whether the purchase is fraudulent or not. This decision is made by the card&#039;s issuer (the bank or other institution that issued the card) not by the Barion system. &lt;br /&gt;
&lt;br /&gt;
There are two major versions of the protocol: &lt;br /&gt;
* &#039;&#039;&#039;3D Secure 1&#039;&#039;&#039; is a HTTP redirect based scenario where the customer almost always needs to provide some extra proof for the transaction. The verification is usually a password or SMS code. Card schemes will decommission 3D Secure 1 by 2021/2022. Barion does not support this old protocol.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;3D Secure 2&#039;&#039;&#039; is more sophisticated and uses additional information about the purchase, the shop and the cardholder to make the decision. This requires more input data but provides better flow with less friction. The card issuer may verify the shopper&#039;s identity using passive, biometric, and two-factor authentication approaches. According to the [https://en.wikipedia.org/wiki/Strong_customer_authentication Strong Customer Authenticaton (SCA) rules of PSD2 RTS] every card issued in the EU has to be authenticated. 3D Secure 2 complies with the regulation.&lt;br /&gt;
&lt;br /&gt;
{{NotificationBox|title=IMPORTANT|text=If the shopper completes a 3DSecure authenticaton successfully, the liability shifts from the merchant to the card issuer in case of fraud.|color=#FF7A3D}}&lt;br /&gt;
==Liability shift rules==&lt;br /&gt;
If a merchant implements 3D Secure authentication, he/she can avoid the liability for chargebacks in case of fraud (e.g. chargeback claim because of lost or stolen cards). This is called a liability shift.&lt;br /&gt;
In general, if a shopper completes a 3D Secure challenge authentication flow successfully, the liability for fraudulent chargebacks shifts from the merchant to the card issuer.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Transaction type&lt;br /&gt;
!Liability shift to card issuer?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|3D Secure 2 transactions with challenge.||style=&amp;quot;text-align:center;&amp;quot; |Yes&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|3D Secure 2 transactions where &#039;&#039;&#039;card issuer applies a PSD2 exemption&#039;&#039;&#039; without the merchant requesting it. E.g. issuer TRA.||style=&amp;quot;text-align:center;&amp;quot; |Yes&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|3D Secure 2 PSD2 SCA out-of-scope transactions: shopper&#039;s issuer is outside of the EEA, anonymous prepaid cards up to 150€ or merchant initiated transactions.||style=&amp;quot;text-align:center;&amp;quot; |No&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|3D Secure 2 transactions where &#039;&#039;&#039;merchant or acquirer requests for a PSD2 exemption&#039;&#039;&#039; and the issuer grants an exemption.||style=&amp;quot;text-align:center;&amp;quot; |No&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The payment process==&lt;br /&gt;
&lt;br /&gt;
The payment follows these steps:&lt;br /&gt;
# The shopper checks out from the merchant&#039;s website and decides to pay for the goods via Barion.&lt;br /&gt;
# Shopper is redirected to the Barion Smart Gateway.&lt;br /&gt;
# Shopper inputs card details and clicks the &#039;&#039;Pay&#039;&#039; button. &amp;lt;br/&amp;gt;--- Until this point nothing changed ---&lt;br /&gt;
# Barion checks whether the card the shopper used is a 3DSecure capable card and also the version the issuer supports. If the card is not &#039;&#039;&#039;3DSecure capable&#039;&#039;&#039;, the card authorization (charge) goes along without any extra step. &lt;br /&gt;
# If the card is 3D Secure capable &lt;br /&gt;
#* with 3DSecure 1, the v1 flow will be started:&lt;br /&gt;
#*# an authentication screen is displayed for the shopper within the Barion UI&lt;br /&gt;
#*# the customer must complete the challenge displayed&lt;br /&gt;
#*# if the challenge is successful the payment process continues&lt;br /&gt;
#* with 3DSecure 2, the v2 flow will be started:&lt;br /&gt;
#*# Barion starts the 3DS authentication in the background. Sends a lot of &#039;&#039;relevant&#039;&#039; information about the purchase to the card issuer. From this information, the issuer decides whether the payment is secure or should the customer be challenged in some form.&lt;br /&gt;
#*# If the result is that the customer &#039;&#039;&#039;should not be challenged&#039;&#039;&#039; (it is called frictionless flow) the customer&#039;s card is charged and the payment flow is continued.&lt;br /&gt;
#*# If the result is that the issuer &#039;&#039;&#039;needs more proof&#039;&#039;&#039; from the customer a popup window will be displayed. In this window, the issuer will display &#039;&#039;something&#039;&#039; for the customer. The content is up to the issuer but will be something that allows the customer to provide proof (SMS, token, question).&lt;br /&gt;
#*# After the customer successfully completed the challenge the card is authenticated and the payment flow continues with the authorization of the card. The card still can be declined after successful 3DS authentication.&lt;br /&gt;
# At the end of the payment the customer will be redirected to the merchant&#039;s website&lt;br /&gt;
&lt;br /&gt;
== 3D Secure 2 ==&lt;br /&gt;
&lt;br /&gt;
The reason behind the second version was to provide a way to achieve the same level of security for the authentication but with less friction. For this a lot more information is required (or at least it is strongly recommended to provide them). This information comes from different sources:&lt;br /&gt;
* merchant&#039;s data about the customer (purchase behavior, addresses, etc)&lt;br /&gt;
* customer&#039;s browser information (screen size, timezone, language, etc)&lt;br /&gt;
* customer provided data (card information, e-mail address) &lt;br /&gt;
* Barion&#039;s data about the merchant, the purchase and the customer (merchant&#039;s MCC code, name of the shop, etc)&lt;br /&gt;
&lt;br /&gt;
The card issuer receives this information package and calculates the risk of the transaction. The result of this calculation specifies the flow:&lt;br /&gt;
* Frictionless flow: The customer will not be presented with any challenge screen, no more information needed, the authorization can take place.&lt;br /&gt;
* Challenge flow: The information was not sufficient, additional challenge is needed to make sure that the card is not stolen.&lt;br /&gt;
&lt;br /&gt;
To achieve the frictionless flow the merchant has to provide as many information as possible about the purchase and the customer. This must be provided during the [[Payment-Start-v2-3DS|v2/payment/start]] API call. The properties marked as &#039;&#039;&#039;3DS&#039;&#039;&#039; must be specified. However, there are scenarios where not all of this data is available. In these cases there are ways to indicate the lack of information. If the merchant does not provide the necessary data the payment will be most likely fall into the challenge flow. This should be avoided because it causes friction and may result in the customer leaving the payment.&lt;br /&gt;
&lt;br /&gt;
Although providing this data enhances the possibility of the frictionless flow it does not make it certain. This decision is up to the card issuer, Barion does not influence it. In case of challenge flow the card issuer will provide a challenge screen that the customer must complete. This can be various things: one-time password sent via text, secret password, etc.&lt;br /&gt;
&lt;br /&gt;
=== Token payment with 3D Secure 2 ===&lt;br /&gt;
&lt;br /&gt;
A token payment is a payment where the customer (the payer) is not redirected to the Barion Smart Gateway instead a previously created token is used to charge the customer. The second version of 3DS defines different scenarios for different token payments. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Merchant Initiated Transaction&#039;&#039;&#039; is when the merchant initiates the payment without the customer being present on the merchant&#039;s website. In this scenario no 3DS authentication is required.&lt;br /&gt;
* &#039;&#039;&#039;One Click Payment&#039;&#039;&#039; is when the merchant makes is available for the customer to purchase goods without using the Barion Smart Gateway to input thpayment e information again. In this case the customer is present at the time of the purchase but does not get redirected to Barion the payment happens in the background. The main point here is that customer initiates the payment process. In this scenario the 3DS authentication is required.&lt;br /&gt;
* &#039;&#039;&#039;Recurring Payment&#039;&#039;&#039; is the scenario where the customer already authorized the merchant to charge it&#039;s funding source without being present. In this case the customer is not present during the payment process. This is used for subscription-based scenarios where the customer is charged regularly with the same amount for the services. This type of token payment can be exempted from the &amp;lt;abbr title=&amp;quot;Strong Customer Authentication&amp;quot;&amp;gt;SCA&amp;lt;/abbr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In case of &#039;&#039;&#039;One Click Payment&#039;&#039;&#039; the merchant has to reference JavaScript file provided by Barion on the checkout page. &lt;br /&gt;
&lt;br /&gt;
{{draft|text=TODO: Describe the One Click Payment process in detail }}&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Payment-Start-v2&amp;diff=2674</id>
		<title>Payment-Start-v2</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Payment-Start-v2&amp;diff=2674"/>
		<updated>2020-11-09T08:52:10Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: /* Input properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageTitle|title=Barion API: Initialize a new payment}}&lt;br /&gt;
&lt;br /&gt;
{{TableOfContents}}&lt;br /&gt;
&lt;br /&gt;
{{api_callmethod&lt;br /&gt;
|method=POST&lt;br /&gt;
|uri=/v2/Payment/Start&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;/payment/start&amp;lt;/code&amp;gt; API endpoint is used to create a new payment in the Barion system.&lt;br /&gt;
&lt;br /&gt;
Prerequisites before use:&lt;br /&gt;
* [[Creating_an_account|Creating an account in Barion]]&lt;br /&gt;
* [[Creating_a_shop|Creating a shop in Barion]]&lt;br /&gt;
* [[Calling_the_API|Calling the Barion API]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;api-ver&amp;quot;&amp;gt;v2&amp;lt;/span&amp;gt; This API endpoint is available in &#039;&#039;&#039;API v2&#039;&#039;&#039; only.&lt;br /&gt;
&lt;br /&gt;
== Use cases ==&lt;br /&gt;
&lt;br /&gt;
This API endpoint is designed to be used in the following scenarios:&lt;br /&gt;
* [[Responsive_web_payment|Responsive Web Payment]]&lt;br /&gt;
&lt;br /&gt;
== Input properties ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|{{3dsfield}} || Properties marked with this must be provided to comply with 3D Secure authentication. The more attributes you provide the more chance you have to avoid the challenge flow.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; if the merchant does not provide 3DS-related properties, it doesn&#039;t mean that the payment will fail. It means that the payer will have a higher chance of getting a challenge during payment.&lt;br /&gt;
&lt;br /&gt;
{{api_input_table_header}}&lt;br /&gt;
|-&lt;br /&gt;
| POSKey || Guid || &lt;br /&gt;
* Required&lt;br /&gt;
|| The secret API key of the shop, generated by Barion. This lets the shop to authenticate through the Barion API, but does not provide access to the account owning the shop itself.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| PaymentType || string || &lt;br /&gt;
* Required&lt;br /&gt;
* Accepted values: &lt;br /&gt;
** &amp;quot;Immediate&amp;quot;&lt;br /&gt;
** &amp;quot;Reservation&amp;quot;&lt;br /&gt;
** &amp;quot;DelayedCapture&amp;quot; &lt;br /&gt;
|| The type of payment, which can be either immediate or a money reservation. Reservation means that the shop has a time window to finish the payment (even though the money transaction still takes place immediately). Reservation amounts can be modified during this time window unless the new amount is lower than the original. &lt;br /&gt;
Click here to learn more about reservation payments: [[Reservation_payment|Reservation payments]], and delayed capture: [[Delayed_Capture|Delayed capture]].&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| ReservationPeriod || TimeSpan (d.hh:mm:ss) || &lt;br /&gt;
* Required only if PaymentType is &amp;quot;Reservation&amp;quot;&lt;br /&gt;
* Minimum value: one minute&lt;br /&gt;
* Maximum value: one year&lt;br /&gt;
* Default value: 30 minutes&lt;br /&gt;
|| Only makes sense at reservation payments. This is the time window that allows the shop to finish (finalize) the payment. If this does not happen within the time window, the system refunds the payment amount to the payer.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| DelayedCapturePeriod || TimeSpan (d.hh:mm:ss) || &lt;br /&gt;
* Required only if PaymentType is &amp;quot;DelayedCapture&amp;quot;&lt;br /&gt;
* Minimum value: one minute&lt;br /&gt;
* Maximum value: seven days&lt;br /&gt;
* Default value: seven days&lt;br /&gt;
|| This is the time window that allows the shop to complete (finalize) the payment. If this does not happen within the time window, the system releases the payment amount.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| PaymentWindow || TimeSpan (d.hh:mm:ss) || &lt;br /&gt;
* Optional&lt;br /&gt;
* Minimum value: one minute&lt;br /&gt;
* Maximum value: one week&lt;br /&gt;
* Default value: 30 minutes&lt;br /&gt;
|| Time window for the payment to be completed. The payer must execute the payment before this elapses, or else the payment will expire and can no longer be completed.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| GuestCheckOut || bool || &lt;br /&gt;
* Required&lt;br /&gt;
* Value must be &amp;quot;true&amp;quot; or &amp;quot;false&amp;quot;, integer evaluation is not supported&lt;br /&gt;
|| Flag indicating whether the payment can be completed without a registered Barion wallet. Guest checkout can only be done with bank cards, and the payer must supply a valid e-mail address - this is necessary for fraud control.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| InitiateRecurrence || bool || &lt;br /&gt;
* Optional&lt;br /&gt;
|| This flag indicates that the shop would like to initialize a token payment. This means that the shop is authorized to charge the funding source of the payer in the future without redirecting her/him to the Barion Smart Gateway. It can be used for one-click and subscription payment scenarios. &lt;br /&gt;
Click here to learn more about token payments: [[Token_payment]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| RecurrenceId || string || &lt;br /&gt;
* Required when executing authorized payments&lt;br /&gt;
* Maximum length: 100 characters&lt;br /&gt;
* Must be unique per shop and per user&lt;br /&gt;
* [https://docs.barion.com/Token_payment#Creating_the_token Generated by the shop]&lt;br /&gt;
|| A string used to identify a given authorized payment. Its purpose is determined by the value of the &#039;&#039;&#039;InitiateRecurrence&#039;&#039;&#039; property.&lt;br /&gt;
* If &#039;&#039;&#039;InitiateRecurrence&#039;&#039;&#039; is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, this property must contain a &amp;lt;u&amp;gt;new&amp;lt;/u&amp;gt; desired identifier for a new authorized payment. This should be generated and stored by the shop before calling the API. Also, the shop must ensure that this is unique per user in its own system.&lt;br /&gt;
* If &#039;&#039;&#039;InitiateRecurrence&#039;&#039;&#039; is &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;, this property must contain an &amp;lt;u&amp;gt;existing&amp;lt;/u&amp;gt; identifier for an authorized payment. This should be used to charge a payer&#039;s funding source (either bank card or Barion wallet) that was already used successfully for a payment in the shop.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| FundingSources || string[] || &lt;br /&gt;
* Required&lt;br /&gt;
* Accepted values: &lt;br /&gt;
** &amp;quot;All&amp;quot;&lt;br /&gt;
** &amp;quot;Balance&amp;quot;&lt;br /&gt;
|| An array of strings containing the allowed funding sources that can be used to complete the payment. &amp;quot;Balance&amp;quot; means that the payer can only use their Barion wallet balance, while &amp;quot;All&amp;quot; means the payment can be completed with either a Barion wallet or a bank card.&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; There is no option to disallow payment by balance since that would deny Barion Wallet users with a balance the ability to pay. There is an option to exclude cards, but not balance.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; this must be supplied as an array because more funding source types are planned in the future.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| PaymentRequestId || string || &lt;br /&gt;
* Required&lt;br /&gt;
* Maximum length: 100 characters&lt;br /&gt;
|| The unique identifier for the payment generated by the shop. This is so the shop can track its own payment identifiers. It is also useful for bookkeeping purposes since this shows up in the monthly account statement and the transaction history export, making identification of payments easier for the shop.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| PayerHint || string || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
* Optional, but recommended&lt;br /&gt;
* Maximum length: 256 characters&lt;br /&gt;
|| The shop can supply an e-mail address as a hint on who should complete the payment. This can be used if the shop is certain about that the payer has an active Barion wallet or the shop would like to help the guest payer with filling in the email field for her/him. If provided, the Barion Smart Gateway automatically fills out the e-mail address field in the Barion wallet login form and the guest payer form, speeding up the payment process.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| CardHolderNameHint || string || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
* Optional, but recommended&lt;br /&gt;
* Between 2 and 45 characters&lt;br /&gt;
|| The shop can provide a hint for the customer&#039;s name on the card to speed up the payment flow. If a value is provided, the cardholder name input will be pre-filled with it and the customer can use the pre-filled value instead of typing it out on its own, which speeds up the payment process.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| RecurrenceType || [[RecurrenceType]] || &lt;br /&gt;
* Required for {{3dsfield}}, when executing authorized payments&lt;br /&gt;
|| Describes the nature of the recurrence. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| RedirectUrl || string || &lt;br /&gt;
* Required &lt;br /&gt;
* Maximum length: 2000 characters&lt;br /&gt;
|| The URL where the payer should be redirected after the payment is completed or canceled. The payment identifier is added to the query string part of this URL in the &amp;lt;code&amp;gt;paymentId&amp;lt;/code&amp;gt; parameter. If not provided, the system will use the redirect URL assigned to the shop that started the payment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| CallbackUrl || string || &lt;br /&gt;
* Required &lt;br /&gt;
* Maximum length: 2000 characters&lt;br /&gt;
|| The URL where the Barion system sends a request whenever there is a change in the state of the payment. The payment identifier is added to the query string part of this URL in the &amp;lt;code&amp;gt;paymentId&amp;lt;/code&amp;gt; parameter. Click here to learn more about the callback mechanism: [[Callback_mechanism|Payment callback mechanism (IPN)]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| Transactions || [[PaymentTransaction]][] || &lt;br /&gt;
* Required&lt;br /&gt;
|| An array of payment transactions contained in the payment. A payment must contain at least one such transaction. See the [[PaymentTransaction]] page for the appropriate structure and syntax.&lt;br /&gt;
Defining multiple transactions allow the payment initiator to distribute the payment amount between multiple shops. See the following page to learn more: [[Facilitated payments]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| OrderNumber || string || &lt;br /&gt;
* Optional&lt;br /&gt;
* Maximum length: 100 characters&lt;br /&gt;
|| The order number generated by the shop. This is to aid the shop in identifying a given payment in its own system. This also shows up in generated monthly account statements and transaction history exports, so it also helps with bookkeeping.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| ShippingAddress || [[ShippingAddress]] || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
|| The shipping address associated with the payment, if applicable. Providing this is recommended because it helps the automatic anti-fraud analysis get more accurate results. See the [[ShippingAddress]] page for the appropriate structure and syntax.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| Locale || string || &lt;br /&gt;
* Required&lt;br /&gt;
* Maximum length: 10 characters&lt;br /&gt;
* Accepted values: &lt;br /&gt;
** &amp;quot;cs-CZ&amp;quot; (Czech)&lt;br /&gt;
** &amp;quot;de-DE&amp;quot; (German)&lt;br /&gt;
** &amp;quot;en-US&amp;quot; (English)&lt;br /&gt;
** &amp;quot;es-ES&amp;quot; (Spanish)&lt;br /&gt;
** &amp;quot;fr-FR&amp;quot; (French)&lt;br /&gt;
** &amp;quot;hu-HU&amp;quot; (Hungarian)&lt;br /&gt;
** &amp;quot;sk-SK&amp;quot; (Slovak)&lt;br /&gt;
** &amp;quot;sl-SI&amp;quot; (Slovenian)&lt;br /&gt;
|| This indicates in which language the Barion Smart Gateway should display for the payer upon redirect. &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| Currency || string || &lt;br /&gt;
* Required&lt;br /&gt;
* Required length: 3 characters&lt;br /&gt;
Accepted values: &lt;br /&gt;
{{CurrencyList}}&lt;br /&gt;
|| The currency of the payment. Must be supplied in ISO 4217 format. This affects all transactions included in the payment; it is not possible to define multiple transactions in different currencies.&lt;br /&gt;
|-&lt;br /&gt;
| PayerPhoneNumber || string || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
* Max length: 30 characters&lt;br /&gt;
* Expected format: 36701231234 (where 36 is the country code)&lt;br /&gt;
* Required for using payment buttons&lt;br /&gt;
|| The &#039;&#039;&#039;mobile&#039;&#039;&#039; phone number of the payer. Must be set to enable [[Payment_Buttons|payment buttons]]. The number must be sent in the expected format, without + sign or leading zero(s).&lt;br /&gt;
|-&lt;br /&gt;
| PayerWorkPhoneNumber || string || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
* Max length: 30 characters&lt;br /&gt;
* Expected format: 36701231234 (where 36 is the country code)&lt;br /&gt;
|| The work phone of the payer. The number must be sent in the expected format, without + sign or leading zero(s).&lt;br /&gt;
|-&lt;br /&gt;
| PayerHomeNumber || string || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
* Max length: 30 characters&lt;br /&gt;
* Expected format: 36701231234 (where 36 is the country code)&lt;br /&gt;
|| The home phone number of the payer. The number must be sent in the expected format, without + sign or leading zero(s).&lt;br /&gt;
|-&lt;br /&gt;
| BillingAddress || [[BillingAddress]] || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
|| The billing address associated with the payment, if applicable.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| PayerAccount || [[PayerAccountInformation]] || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
|| Information about the account of the payer in the merchant&#039;s system.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| PurchaseInformation|| [[PurchaseInformation]] || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
|| Information about current purchase.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| ChallengePreference || [[ChallengePreference]] || &lt;br /&gt;
* Required for {{3dsfield}}&lt;br /&gt;
|| The merchant&#039;s preference of the 3DS challenge. Here you can specify what 3DS authentication should be utilized.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Output properties ==&lt;br /&gt;
&lt;br /&gt;
{{api_output_table_header}}&lt;br /&gt;
|-&lt;br /&gt;
| PaymentId || Guid || The identifier of the newly initialized payment, generated by the Barion system.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| PaymentRequestId || string || The payment identifier supplied by the API caller in the request.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| Status || [[PaymentStatus]]|| The status of the payment in the Barion system. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| QRUrl || string || URL for a QR code representing the payment. This is useful in physical real life situations where the payer uses a mobile device.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| RecurrenceResult || RecurrenceResult || Indicates the result of an authorized payment scenario. The result depends on the values of the &#039;&#039;&#039;InitiateRecurrence&#039;&#039;&#039; and &#039;&#039;&#039;RecurrenceId&#039;&#039;&#039; properties supplied in the request.&lt;br /&gt;
&lt;br /&gt;
* If &#039;&#039;&#039;InitiateRecurrence&#039;&#039;&#039; was &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, and a new authorized payment was successfully created, this will be &amp;lt;code&amp;gt;None&amp;lt;/code&amp;gt; (because no actual token charge took place yet)&lt;br /&gt;
&lt;br /&gt;
* If &#039;&#039;&#039;InitiateRecurrence&#039;&#039;&#039; was &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;, but a previously authorized payment identifier was supplied in &#039;&#039;&#039;RecurrenceId&#039;&#039;&#039;, the system will try to charge the funding source associated with the authorized payment. If this charge is successful, the result is &amp;lt;code&amp;gt;Successful&amp;lt;/code&amp;gt;. If the system could not charge the funding srouce, the result is &amp;lt;code&amp;gt;Failed&amp;lt;/code&amp;gt;. If the given identifier is invalid or does not exist, the result is &amp;lt;code&amp;gt;NotFound&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| Transactions || [[ProcessedTransaction]][] || An array containing all transactions associated with the payment. If the Barion system deducts fees from the shop after payments, this also contains these additional fee transactions beside the payment transactions that were sent in the request.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| GatewayUrl || string || The URL of the Barion Smart Gateway (including the payment identifier), where the API caller should redirect the payer.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| CallbackUrl || string || The URL (including the payment identifier) where the Barion system will send a request to whenever there is a change in the state of the payment. If an explicit URL was not supplied, this will be the callback URL associated with the shop that started the payment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| RedirectUrl || string|| The URL (including the payment identifier) where the payer gets redirected to after the payment is completed or cancelled. If an explicit URL was not supplied, this will be the redirect URL associated with the shop that started the payment.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2622</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2622"/>
		<updated>2020-11-04T15:14:32Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding a payment method on Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png|1000px]]&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2621</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2621"/>
		<updated>2020-11-04T15:14:15Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png|1000px]]&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2620</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2620"/>
		<updated>2020-11-04T15:13:49Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png]]&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png]]&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2619</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2619"/>
		<updated>2020-11-04T15:13:14Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png]]&lt;br /&gt;
&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png]]&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
[[File:Barion_shop_poskey.png]]&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
[[File:Add_js_code_001.png]]&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the following code to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_001.png]]&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_manual_payment_002.png]]&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Create_manual_payment_002.png&amp;diff=2618</id>
		<title>File:Create manual payment 002.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Create_manual_payment_002.png&amp;diff=2618"/>
		<updated>2020-11-04T15:12:58Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Create_manual_payment_001.png&amp;diff=2617</id>
		<title>File:Create manual payment 001.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Create_manual_payment_001.png&amp;diff=2617"/>
		<updated>2020-11-04T15:12:30Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Add_js_code_001.png&amp;diff=2616</id>
		<title>File:Add js code 001.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Add_js_code_001.png&amp;diff=2616"/>
		<updated>2020-11-04T15:12:07Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Barion_shop_poskey.png&amp;diff=2615</id>
		<title>File:Barion shop poskey.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Barion_shop_poskey.png&amp;diff=2615"/>
		<updated>2020-11-04T15:11:14Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2614</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2614"/>
		<updated>2020-11-04T15:10:25Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
[[File:Create_private_app_001.png]]&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_002.png]]&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_003.png]]&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_private_app_004.png]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the followingcode to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Create_private_app_004.png&amp;diff=2613</id>
		<title>File:Create private app 004.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Create_private_app_004.png&amp;diff=2613"/>
		<updated>2020-11-04T15:09:49Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2612</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2612"/>
		<updated>2020-11-04T15:08:07Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
[[Create_private_app_001.png]]&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
[[Create_private_app_002.png]]&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
[[Create_private_app_003.png]]&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the followingcode to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Create_private_app_003.png&amp;diff=2611</id>
		<title>File:Create private app 003.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Create_private_app_003.png&amp;diff=2611"/>
		<updated>2020-11-04T15:07:58Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Create_private_app_002.png&amp;diff=2610</id>
		<title>File:Create private app 002.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Create_private_app_002.png&amp;diff=2610"/>
		<updated>2020-11-04T15:07:08Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=File:Create_private_app_001.png&amp;diff=2609</id>
		<title>File:Create private app 001.png</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=File:Create_private_app_001.png&amp;diff=2609"/>
		<updated>2020-11-04T15:06:54Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2608</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2608"/>
		<updated>2020-11-04T15:04:10Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Onboarding steps=&lt;br /&gt;
&lt;br /&gt;
=== Register » Create a Shop » Get verified » Integrate Barion for Shopify ===&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
== Connect your Shopify shop with Barion ==&lt;br /&gt;
&lt;br /&gt;
=== How to create Shopify keys ===&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Filling Barion details out ===&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Adding the integration code to Shopify Admin interface ===&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the followingcode to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
On Shopify Admin interface go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Payments&amp;quot; and &amp;quot;Manual payment methods&amp;quot;. Click to &amp;quot;Manual payment methods&amp;quot; then choose &amp;quot;Create custom payment methods&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Provide the following details:&lt;br /&gt;
&lt;br /&gt;
- Custom payment method name: &#039;&#039;&#039;Barion Payments&#039;&#039;&#039;&lt;br /&gt;
- Additional details: after making an order you will be directed to the billing interface of Barion.&lt;br /&gt;
&lt;br /&gt;
After you have provided everything, click to &amp;quot;Active&amp;quot; button.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2607</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2607"/>
		<updated>2020-11-04T15:01:24Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
===New to Shopify? Upgrade your business with a fully functional webshop in no time===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Have a Shopify shop? Downgrade your payment costs with Barion===&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Onboarding steps==&lt;br /&gt;
&lt;br /&gt;
==== Register » Create a Shop » Get verified » Integrate Barion for Shopify ====&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
=== Connect your Shopify shop with Barion ===&lt;br /&gt;
&lt;br /&gt;
==== How to create Shopify keys ====&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Filling Barion details out ====&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Adding the integration code to Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
On the Shopify Admin interface please go to &amp;quot;Settings&amp;quot; --&amp;gt; &amp;quot;Checkout&amp;quot; menu and add the followingcode to the section &amp;quot;Additional scripts&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039;: The steps until now is the same for test shops, and for production shops, but this code snippet is different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TEST&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.test.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;,&lt;br /&gt;
sandboxMode: true&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PRODUCTION&#039;&#039;&#039; script:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;script src=&amp;quot;https://shopify.barion.com/js/barion/barion.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;Barion.init({&lt;br /&gt;
orderId: {{ order.id }},&lt;br /&gt;
domain: &#039;{{shop.permanent_domain}}&#039;,&lt;br /&gt;
gateway: &#039;{{order.gateway}}&#039;,&lt;br /&gt;
orderStatus: &#039;{{order.financial_status}}&#039;&lt;br /&gt;
})&amp;lt;/script&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2606</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2606"/>
		<updated>2020-11-04T14:58:03Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
===New to Shopify? Upgrade your business with a fully functional webshop in no time===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Have a Shopify shop? Downgrade your payment costs with Barion===&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Onboarding steps==&lt;br /&gt;
&lt;br /&gt;
==== Register » Create a Shop » Get verified » Integrate Barion for Shopify ====&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
=== Connect your Shopify shop with Barion ===&lt;br /&gt;
&lt;br /&gt;
==== How to create Shopify keys ====&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Filling Barion details out ====&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit &#039;&#039;&#039;Save&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Adding the integration code to Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2605</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2605"/>
		<updated>2020-11-04T14:57:31Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
===New to Shopify? Upgrade your business with a fully functional webshop in no time===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Have a Shopify shop? Downgrade your payment costs with Barion===&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Onboarding steps==&lt;br /&gt;
&lt;br /&gt;
==== Register » Create a Shop » Get verified » Integrate Barion for Shopify ====&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
=== Connect your Shopify shop with Barion ===&lt;br /&gt;
&lt;br /&gt;
==== How to create Shopify keys ====&lt;br /&gt;
In the Shopify admin interface please go to &amp;quot;Apps&amp;quot; and click to &amp;quot;Manage private apps&amp;quot; option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)&lt;br /&gt;
&lt;br /&gt;
Click to &amp;quot;Create a new private app&amp;quot; button and give a name and an e-mail address you wish to use. Choose &amp;quot;Show inactive Admin Api permission&amp;quot; and set the option &amp;quot;Read and write&amp;quot;, then click to &amp;quot;Save&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to &amp;quot;Show&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Filling Barion details out ====&lt;br /&gt;
&lt;br /&gt;
To get your Barion Shop&#039;s Secret key (POSKey), go to [https://secure.barion.com/Shop your Barion shops] click on the &amp;quot;Actions&amp;quot; and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit *Save*&lt;br /&gt;
&lt;br /&gt;
==== Adding the integration code to Shopify Admin interface ====&lt;br /&gt;
&lt;br /&gt;
==== Adding a payment method on Shopify Admin interface ====&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2604</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2604"/>
		<updated>2020-11-04T14:50:43Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
===New to Shopify? Upgrade your business with a fully functional webshop in no time===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Have a Shopify shop? Downgrade your payment costs with Barion===&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Onboarding steps==&lt;br /&gt;
&lt;br /&gt;
==== Register » Create a Shop » Get verified » Integrate Barion for Shopify ====&lt;br /&gt;
&lt;br /&gt;
# [https://secure.barion.com/Registration/Organization?isEmailLocked=False Register a Barion account for your Business]&lt;br /&gt;
# [https://www.barion.com/en/support/how-can-i-create-a-barion-shop-does-this-require-an-approval/ Create a Shop]&lt;br /&gt;
# [https://www.barion.com/en/support/what-is-the-process-of-video-identification/ Get verified], [https://www.barion.com/en/support/documents-required-for-video-identification/ The documents you need] &lt;br /&gt;
&lt;br /&gt;
=== Connect your Shopify shop with Barion ===&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2603</id>
		<title>Barion for Shopify</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Barion_for_Shopify&amp;diff=2603"/>
		<updated>2020-11-04T14:39:04Z</updated>

		<summary type="html">&lt;p&gt;Hargitan: Created page with &amp;quot;=Barion for Shopify=  ==New to Shopify? Upgrade your business with a fully functional webshop in no time==   - Bring your business online: Create an e-commerce website backed...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Barion for Shopify=&lt;br /&gt;
&lt;br /&gt;
==New to Shopify? Upgrade your business with a fully functional webshop in no time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day&lt;br /&gt;
&lt;br /&gt;
- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions&lt;br /&gt;
&lt;br /&gt;
- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered&lt;br /&gt;
&lt;br /&gt;
- Payments made international: Enjoy the benefits of Barion&#039;s many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a Shopify shop? Downgrade your payment costs with Barion==&lt;br /&gt;
&lt;br /&gt;
- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.&lt;/div&gt;</summary>
		<author><name>Hargitan</name></author>
	</entry>
</feed>