<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.barion.com/index.php?action=history&amp;feed=atom&amp;title=App2App_integration_on_ios_with_server_side</id>
	<title>App2App integration on ios with server side - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.barion.com/index.php?action=history&amp;feed=atom&amp;title=App2App_integration_on_ios_with_server_side"/>
	<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;action=history"/>
	<updated>2026-11-25T04:59:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=4292&amp;oldid=prev</id>
		<title>Bujnab@barion.dev: replaced reference to v2 GetPaymentState with v4 PaymentState</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=4292&amp;oldid=prev"/>
		<updated>2024-03-25T10:21:04Z</updated>

		<summary type="html">&lt;p&gt;replaced reference to v2 GetPaymentState with v4 PaymentState&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:21, 25 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The server-side must be capable of the following call types (you can also see them on the flow chart above): :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The server-side must be capable of the following call types (you can also see them on the flow chart above): :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Payment initiation in the Barion System through the [[Payment-Start-v2|Payment/Start]] API request.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Payment initiation in the Barion System through the [[Payment-Start-v2|Payment/Start]] API request.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Get payment&#039;s state from the Barion System through the [[Payment-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GetPaymentState&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v2&lt;/del&gt;|Payment/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GetPaymentState&lt;/del&gt;]] API request.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Get payment&#039;s state from the Barion System through the [[Payment-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PaymentState&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v4&lt;/ins&gt;|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/v4/&lt;/ins&gt;Payment/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;PaymentId&amp;gt;/PaymentState&lt;/ins&gt;]] API request.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can use any languages and technology. In the case of PHP you can use our library, which you can download from [https://github.com/barion Barion&amp;#039;s GitHub page].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can use any languages and technology. In the case of PHP you can use our library, which you can download from [https://github.com/barion Barion&amp;#039;s GitHub page].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1529&amp;oldid=prev</id>
		<title>Macika: /* 5.1. step - Setup UIWebView */</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1529&amp;oldid=prev"/>
		<updated>2019-02-07T14:45:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;5.1. step - Setup UIWebView&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:45, 7 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l438&quot;&gt;Line 438:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 438:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We create a new viewcontroller with a full screen Webview and with a UIActivityIndicatorView. In the Interface Builder this will look something like this:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We create a new viewcontroller with a full screen Webview and with a UIActivityIndicatorView. In the Interface Builder this will look something like this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Fájl&lt;/del&gt;:WebView.png|center|200px]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/ins&gt;:WebView.png|center|200px]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is the content of the UIViewController for that view above:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is the content of the UIViewController for that view above:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Macika</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1526&amp;oldid=prev</id>
		<title>Macika: /* 4. step - Initiate payment */</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1526&amp;oldid=prev"/>
		<updated>2019-02-07T14:40:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;4. step - Initiate payment&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:40, 7 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l380&quot;&gt;Line 380:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 380:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===4. step - Initiate payment===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===4. step - Initiate payment===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;At any point in the mobile application – where the products you want to pay are available - you should initiate the payment in the Barion System. The Barion IOS Library will check the parameters and if something is wrong, itwill return with an error. The possible error codes can be found on [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Barion_Mobil_Library_Hibakódok&lt;/del&gt;|this page]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;At any point in the mobile application – where the products you want to pay are available - you should initiate the payment in the Barion System. The Barion IOS Library will check the parameters and if something is wrong, itwill return with an error. The possible error codes can be found on [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Barion_Mobil_Library_ErrorCodes&lt;/ins&gt;|this page]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Macika</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1525&amp;oldid=prev</id>
		<title>Macika: /* 1. step - Setup your iOS application for Universal links */</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1525&amp;oldid=prev"/>
		<updated>2019-02-07T14:39:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;1. step - Setup your iOS application for Universal links&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:39, 7 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l92&quot;&gt;Line 92:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===1. step - Setup your iOS application for Universal links===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===1. step - Setup your iOS application for Universal links===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Open the XCode. Select your project and the target. Select the &amp;#039;&amp;#039;&amp;#039;Capabilities&amp;#039;&amp;#039;&amp;#039; tab and look for the &amp;#039;&amp;#039;&amp;#039;Associated Domains&amp;#039;&amp;#039;&amp;#039; section! You need to add the domains that you have written in the 0.2 step:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Open the XCode. Select your project and the target. Select the &amp;#039;&amp;#039;&amp;#039;Capabilities&amp;#039;&amp;#039;&amp;#039; tab and look for the &amp;#039;&amp;#039;&amp;#039;Associated Domains&amp;#039;&amp;#039;&amp;#039; section! You need to add the domains that you have written in the 0.2 step:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Fájl&lt;/del&gt;:Universallink.png|center|800px]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/ins&gt;:Universallink.png|center|800px]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As a result, this will generate a [ProjectName].entitlements file.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As a result, this will generate a [ProjectName].entitlements file.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Macika</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1524&amp;oldid=prev</id>
		<title>Macika: /* 2. step - Setup your application to handle your own scheme */</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1524&amp;oldid=prev"/>
		<updated>2019-02-07T14:39:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;2. step - Setup your application to handle your own scheme&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:39, 7 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l97&quot;&gt;Line 97:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 97:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===2. step - Setup your application to handle your own scheme===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===2. step - Setup your application to handle your own scheme===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Switch to the &amp;#039;&amp;#039;&amp;#039;Info&amp;#039;&amp;#039;&amp;#039; tab, and open the &amp;#039;&amp;#039;&amp;#039;URL Types&amp;#039;&amp;#039;&amp;#039; section! Add your own url scheme as you can see on this image.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Switch to the &amp;#039;&amp;#039;&amp;#039;Info&amp;#039;&amp;#039;&amp;#039; tab, and open the &amp;#039;&amp;#039;&amp;#039;URL Types&amp;#039;&amp;#039;&amp;#039; section! Add your own url scheme as you can see on this image.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Fájl&lt;/del&gt;:UrlScheme.png|center|800px]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/ins&gt;:UrlScheme.png|center|800px]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===3. step - Create classes for network communication===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===3. step - Create classes for network communication===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Macika</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1523&amp;oldid=prev</id>
		<title>Macika: /* flow chart */</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1523&amp;oldid=prev"/>
		<updated>2019-02-07T14:38:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;flow chart&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:38, 7 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==flow chart==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==flow chart==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Fájl&lt;/del&gt;:Barion_app2app_flow_updated_2.png|center|800px]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/ins&gt;:Barion_app2app_flow_updated_2.png|center|800px]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Server-side developments==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Server-side developments==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Macika</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1522&amp;oldid=prev</id>
		<title>Macika: Created page with &quot;__NOTOC__  In this type of integration, you don&#039;t need to edit your server-side. In your mobile application, you don&#039;t have to implement network communication. We already did...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=App2App_integration_on_ios_with_server_side&amp;diff=1522&amp;oldid=prev"/>
		<updated>2019-02-07T14:38:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  In this type of integration, you don&amp;#039;t need to edit your server-side. In your mobile application, you don&amp;#039;t have to implement network communication. We already did...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
In this type of integration, you don&amp;#039;t need to edit your server-side. In your mobile application, you don&amp;#039;t have to implement network communication. We already did it for you. If you use the Barion Android library you have to add a few lines of code to your existing codebase. The disadvantage of this is, that you have to notify your own server-side about the payments and your mobile app can contain the POSKey.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Downloads, example==&lt;br /&gt;
You can download the example project from [https://github.com/barion/barion-ios-objc-app2app/tree/master/examples/NativeIntegration this].&lt;br /&gt;
&lt;br /&gt;
This project contains the models, and error handling processes. so this description won&amp;#039;t talk about it.&lt;br /&gt;
&lt;br /&gt;
==flow chart==&lt;br /&gt;
[[Fájl:Barion_app2app_flow_updated_2.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
==Server-side developments==&lt;br /&gt;
The server-side must be capable of the following call types (you can also see them on the flow chart above): :&lt;br /&gt;
* Payment initiation in the Barion System through the [[Payment-Start-v2|Payment/Start]] API request.&lt;br /&gt;
* Get payment&amp;#039;s state from the Barion System through the [[Payment-GetPaymentState-v2|Payment/GetPaymentState]] API request.&lt;br /&gt;
&lt;br /&gt;
You can use any languages and technology. In the case of PHP you can use our library, which you can download from [https://github.com/barion Barion&amp;#039;s GitHub page].&lt;br /&gt;
The Barion System using JSON format in the requests and responses.&lt;br /&gt;
&lt;br /&gt;
==Integration steps==&lt;br /&gt;
===0. step - Server-side developments===&lt;br /&gt;
====0.1. step - Server-side requests====&lt;br /&gt;
For the server-side requests, you can use the examples directory in our PHP library on [https://github.com/barion/barion-web-php/tree/master/examples Barion&amp;#039;s GitHub page]]. &lt;br /&gt;
&lt;br /&gt;
In this example we assume the following:&lt;br /&gt;
* For the payment initiator request, we will send the list of products with a POST request under the Items key&lt;br /&gt;
* For the payment&amp;#039;s status, we will use a GET request.&lt;br /&gt;
&lt;br /&gt;
Add server-side endpoints to your mobile application:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   // Parameters.h file&lt;br /&gt;
   @interface Parameters : NSObject&lt;br /&gt;
&lt;br /&gt;
   + (NSString*)startBarionPaymentUrl;&lt;br /&gt;
   + (NSString*)getBarionPaymentStateUrl;&lt;br /&gt;
   + (NSString*)redirectUrl;&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   // Parameters.m file&lt;br /&gt;
   @implementation Parameters&lt;br /&gt;
&lt;br /&gt;
   + (NSString*)startBarionPaymentUrl&lt;br /&gt;
   {&lt;br /&gt;
      return @&amp;quot;http://your-domain.com/generate_barion_payment.php&amp;quot;;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   + (NSString*)getBarionPaymentStateUrl&lt;br /&gt;
   {&lt;br /&gt;
      return @&amp;quot;http://your-domain.com/get_barion_payment_state.php?PaymentId=&amp;quot;;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   + (NSString*)redirectUrl&lt;br /&gt;
   {&lt;br /&gt;
      NSString* url;&lt;br /&gt;
      if ([[[UIDevice currentDevice] systemVersion] floatValue] &amp;lt; 9) {&lt;br /&gt;
         url = @&amp;quot;your-domain://&amp;quot;;&lt;br /&gt;
      } else {&lt;br /&gt;
         url = @&amp;quot;https://your-domain.com/&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
      return url;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====0.2. step - Setup your server-side for Universal links====&lt;br /&gt;
In order to the Barion mobile application to redirect the user to the integrator mobile application, you have to put one file into your website&amp;#039;s root directory. Your website must support HTTPS protocol. Simply put a file into your website&amp;#039;s root directory. Name it to &amp;#039;&amp;#039;&amp;#039;apple-app-site-association&amp;#039;&amp;#039;&amp;#039;. Don&amp;#039;t write any extension to the name. The file’s content should be something like this:&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
   {&lt;br /&gt;
      &amp;quot;applinks&amp;quot;:{&lt;br /&gt;
         &amp;quot;apps&amp;quot;:[],&lt;br /&gt;
         &amp;quot;details&amp;quot;:[&lt;br /&gt;
            {&lt;br /&gt;
               &amp;quot;appID&amp;quot;:&amp;quot;[your ios team id].[your application&amp;#039;s bundle id]&amp;quot;,&lt;br /&gt;
               &amp;quot;paths&amp;quot;:[&lt;br /&gt;
                  &amp;quot;*&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;
There is a real example on [https://secure.barion.com/apple-app-site-association our website].&lt;br /&gt;
&lt;br /&gt;
You can read more about Universal link in [https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html Apple&amp;#039;s documentation]&lt;br /&gt;
The Universal Link doesn&amp;#039;t work in simulator!&lt;br /&gt;
&lt;br /&gt;
===1. step - Setup your iOS application for Universal links===&lt;br /&gt;
Open the XCode. Select your project and the target. Select the &amp;#039;&amp;#039;&amp;#039;Capabilities&amp;#039;&amp;#039;&amp;#039; tab and look for the &amp;#039;&amp;#039;&amp;#039;Associated Domains&amp;#039;&amp;#039;&amp;#039; section! You need to add the domains that you have written in the 0.2 step:&lt;br /&gt;
[[Fájl:Universallink.png|center|800px]]&lt;br /&gt;
As a result, this will generate a [ProjectName].entitlements file.&lt;br /&gt;
&lt;br /&gt;
===2. step - Setup your application to handle your own scheme===&lt;br /&gt;
Switch to the &amp;#039;&amp;#039;&amp;#039;Info&amp;#039;&amp;#039;&amp;#039; tab, and open the &amp;#039;&amp;#039;&amp;#039;URL Types&amp;#039;&amp;#039;&amp;#039; section! Add your own url scheme as you can see on this image.&lt;br /&gt;
[[Fájl:UrlScheme.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
===3. step - Create classes for network communication===&lt;br /&gt;
Here you can see a possible solution:&lt;br /&gt;
====3.1. step - Network base class====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   // BaseConnectionHandler.h&lt;br /&gt;
   #import &amp;lt;Foundation/Foundation.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   @protocol BaseConnectionHandlerDelegate &amp;lt;NSObject&amp;gt;&lt;br /&gt;
      - (void)networkError;&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   @interface BaseConnectionHandler : NSObject &amp;lt;NSURLConnectionDataDelegate, NSURLConnectionDelegate&amp;gt;&lt;br /&gt;
   {&lt;br /&gt;
       NSURLConnection* _connection;&lt;br /&gt;
       NSMutableData* _data;&lt;br /&gt;
       float _timeout;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)cancel;&lt;br /&gt;
   - (void)startGETWithUrlString:(NSString*)urlString;&lt;br /&gt;
   - (void)startPOSTWithUrlString:(NSString*)urlString jsonString:(NSString*)jsonString;&lt;br /&gt;
   - (void)requestComplete:(NSDictionary*)result;&lt;br /&gt;
   - (void)error:(NSArray*)barionErrors;&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   // BaseConnectionHandler.m&lt;br /&gt;
   #import &amp;quot;AppDelegate.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;BaseConnectionHandler.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;BarionError.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @implementation BaseConnectionHandler&lt;br /&gt;
&lt;br /&gt;
   static int _activityIndicatorRequest = 0;&lt;br /&gt;
&lt;br /&gt;
   - (id)init&lt;br /&gt;
   {&lt;br /&gt;
      self = [super init];&lt;br /&gt;
      if(self)&lt;br /&gt;
      {&lt;br /&gt;
         _timeout = 30.0;&lt;br /&gt;
         _data = [[NSMutableData alloc] init];&lt;br /&gt;
         _activityIndicatorRequest++;&lt;br /&gt;
         [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;&lt;br /&gt;
      }&lt;br /&gt;
      return self;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)dealloc&lt;br /&gt;
   {&lt;br /&gt;
      [self cancel];&lt;br /&gt;
      if(_activityIndicatorRequest &amp;gt; 1) {&lt;br /&gt;
         _activityIndicatorRequest--;&lt;br /&gt;
      } else {&lt;br /&gt;
         _activityIndicatorRequest = 0;&lt;br /&gt;
         [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)cancel&lt;br /&gt;
   {&lt;br /&gt;
      if(_connection)&lt;br /&gt;
      {&lt;br /&gt;
         [_connection cancel];&lt;br /&gt;
         _connection = nil;&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)startGETWithUrlString:(NSString*)urlString&lt;br /&gt;
   {&lt;br /&gt;
      NSURL* url = [NSURL URLWithString: urlString];&lt;br /&gt;
      NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL: url];&lt;br /&gt;
      [request setTimeoutInterval:_timeout];&lt;br /&gt;
      _connection = [[NSURLConnection alloc] initWithRequest: request delegate:self];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)startPOSTWithUrlString:(NSString*)urlString jsonString:(NSString*)jsonString&lt;br /&gt;
   {&lt;br /&gt;
      NSURL* url = [[NSURL alloc] initWithString: urlString];&lt;br /&gt;
      NSMutableURLRequest* urlRequest = [[NSMutableURLRequest alloc] initWithURL:url];&lt;br /&gt;
      NSData* requestData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];&lt;br /&gt;
      [urlRequest setValue: [NSString stringWithFormat:@&amp;quot;%lu&amp;quot;, (unsigned long)requestData.length] &lt;br /&gt;
         forHTTPHeaderField:@&amp;quot;Content-Length&amp;quot;];&lt;br /&gt;
      [urlRequest setValue:@&amp;quot;gzip&amp;quot; forHTTPHeaderField:@&amp;quot;Accept-Encoding&amp;quot;];&lt;br /&gt;
      [urlRequest setValue:@&amp;quot;application/json&amp;quot; forHTTPHeaderField:@&amp;quot;Content-Type&amp;quot;];&lt;br /&gt;
      [urlRequest setHTTPMethod: @&amp;quot;POST&amp;quot;];&lt;br /&gt;
      [urlRequest setHTTPBody: requestData];&lt;br /&gt;
      [urlRequest setTimeoutInterval:_timeout];&lt;br /&gt;
      _connection = [[NSURLConnection alloc] initWithRequest:urlRequest delegate:self];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data&lt;br /&gt;
   {&lt;br /&gt;
      [_data appendData: data];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)connectionDidFinishLoading:(NSURLConnection *)connection&lt;br /&gt;
   {&lt;br /&gt;
      NSError* jsonParsingError;&lt;br /&gt;
      NSDictionary* jsonResult = [NSJSONSerialization JSONObjectWithData: _data options: 0 error: &amp;amp;jsonParsingError];&lt;br /&gt;
      if(jsonParsingError != nil) {&lt;br /&gt;
         [self error: nil];&lt;br /&gt;
      } else {&lt;br /&gt;
         NSArray* jsonErrors = [jsonResult objectForKey: @&amp;quot;Errors&amp;quot;];&lt;br /&gt;
         if(jsonErrors.count != 0)&lt;br /&gt;
         {&lt;br /&gt;
            NSMutableArray* errors = [NSMutableArray new];&lt;br /&gt;
            for(int i = 0; i &amp;lt; jsonErrors.count; ++i)&lt;br /&gt;
            {&lt;br /&gt;
               NSDictionary* errorDict = [jsonErrors objectAtIndex: i];&lt;br /&gt;
               BarionError* error = [[BarionError alloc] initWithErrorCode: [errorDict objectForKey: @&amp;quot;ErrorCode&amp;quot;] &lt;br /&gt;
                  title: [errorDict objectForKey: @&amp;quot;Title&amp;quot;] description: [errorDict objectForKey:@&amp;quot;Description&amp;quot;]];&lt;br /&gt;
               [errors addObject: error];&lt;br /&gt;
            }&lt;br /&gt;
            [self error: errors];&lt;br /&gt;
         } else {&lt;br /&gt;
            [self requestComplete: jsonResult];&lt;br /&gt;
         }&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error&lt;br /&gt;
   {&lt;br /&gt;
      [self cancel];&lt;br /&gt;
      [self error: nil];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)requestComplete:(NSDictionary*)result&lt;br /&gt;
   {&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)error:(NSArray*)barionErrors&lt;br /&gt;
   {&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)setTimeout:(float)timeout {&lt;br /&gt;
      _timeout = timeout;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====3.2. step - Payment initiator network class====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   // StartPaymentConnectionHandler.h&lt;br /&gt;
   #import &amp;quot;BaseConnectionHandler.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @protocol StartPaymentConnectionHandlerDelegate &amp;lt;BaseConnectionHandlerDelegate&amp;gt;&lt;br /&gt;
      - (void)paymentStartSuccessed:(NSDictionary*)result;&lt;br /&gt;
      - (void)paymentStartFailed:(NSArray*)errors;&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   @interface StartPaymentConnectionHandler : BaseConnectionHandler&lt;br /&gt;
   {&lt;br /&gt;
      id&amp;lt;StartPaymentConnectionHandlerDelegate&amp;gt; _delegate;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (id)initWithDelegate:(id&amp;lt;StartPaymentConnectionHandlerDelegate&amp;gt;)delegate products:(NSArray*)products;&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   // StartPaymentConnectionHandler.m&lt;br /&gt;
   #import &amp;quot;StartPaymentConnectionHandler.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;Product.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;Parameters.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @implementation StartPaymentConnectionHandler&lt;br /&gt;
&lt;br /&gt;
   - (id)initWithDelegate:(id&amp;lt;StartPaymentConnectionHandlerDelegate&amp;gt;)delegate products:(NSArray*)products;&lt;br /&gt;
   {&lt;br /&gt;
      self = [super init];&lt;br /&gt;
      if(self)&lt;br /&gt;
      {&lt;br /&gt;
         _delegate = delegate;&lt;br /&gt;
        &lt;br /&gt;
         NSMutableArray* productsArray = [NSMutableArray new];&lt;br /&gt;
         for(int i = 0; i &amp;lt; products.count; ++i)&lt;br /&gt;
         {&lt;br /&gt;
            Product* p = [products objectAtIndex: i];&lt;br /&gt;
            NSMutableDictionary* dict = [NSMutableDictionary new];&lt;br /&gt;
            [dict setObject: p.name forKey: @&amp;quot;Name&amp;quot;];&lt;br /&gt;
            [dict setObject: p.productDescription forKey: @&amp;quot;Description&amp;quot;];&lt;br /&gt;
            [dict setObject: [NSString stringWithFormat: @&amp;quot;%f&amp;quot;, p.quantity] forKey: @&amp;quot;Quantity&amp;quot;];&lt;br /&gt;
            [dict setObject: p.unit forKey: @&amp;quot;Unit&amp;quot;];&lt;br /&gt;
            [dict setObject: [NSString stringWithFormat: @&amp;quot;%f&amp;quot;, p.price] forKey: @&amp;quot;UnitPrice&amp;quot;];&lt;br /&gt;
            [dict setObject: [NSString stringWithFormat: @&amp;quot;%f&amp;quot;, p.price] forKey: @&amp;quot;ItemTotal&amp;quot;];&lt;br /&gt;
            [dict setObject: p.SKU forKey: @&amp;quot;SKU&amp;quot;];&lt;br /&gt;
            [productsArray addObject: dict];&lt;br /&gt;
         }&lt;br /&gt;
        &lt;br /&gt;
         NSMutableDictionary* containerDict = [NSMutableDictionary new];&lt;br /&gt;
         [containerDict setObject: productsArray forKey: @&amp;quot;Products&amp;quot;];&lt;br /&gt;
         [containerDict setObject: [Parameters redirectUrl] forKey: @&amp;quot;RedirectUrl&amp;quot;];&lt;br /&gt;
        &lt;br /&gt;
         NSString* jsonString = [[NSString alloc] initWithData: [NSJSONSerialization dataWithJSONObject: containerDict &lt;br /&gt;
            options:0 error:nil] encoding: NSUTF8StringEncoding];&lt;br /&gt;
        &lt;br /&gt;
         [self startPOSTWithUrlString: [Parameters startBarionPaymentUrl] jsonString: jsonString];&lt;br /&gt;
      }&lt;br /&gt;
      return self;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)requestComplete:(NSDictionary *)result&lt;br /&gt;
   {&lt;br /&gt;
      [_delegate paymentStartSuccessed: result];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)error:(NSArray *)barionErrors&lt;br /&gt;
   {&lt;br /&gt;
      if(barionErrors == nil)&lt;br /&gt;
      {&lt;br /&gt;
         [_delegate networkError];&lt;br /&gt;
      } else {&lt;br /&gt;
         [_delegate paymentStartFailed: barionErrors];&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====3.3. step - Payment&amp;#039;s status network class====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   // GetPaymentStateConnectionHandler.h&lt;br /&gt;
   #import &amp;quot;BaseConnectionHandler.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @protocol GetPaymentStateConnectionHandlerDelegate &amp;lt;BaseConnectionHandlerDelegate&amp;gt;&lt;br /&gt;
      - (void)getPaymentStateSuccessed:(NSDictionary*)response;&lt;br /&gt;
      - (void)getPaymentStateFailed:(NSArray*)barionErrors;&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   @interface GetPaymentStateConnectionHandler : BaseConnectionHandler&lt;br /&gt;
   {&lt;br /&gt;
      id&amp;lt;GetPaymentStateConnectionHandlerDelegate&amp;gt; _delegate;&lt;br /&gt;
   }&lt;br /&gt;
   &lt;br /&gt;
   - (id)initWithDelegate:(id&amp;lt;GetPaymentStateConnectionHandlerDelegate&amp;gt;)delegate paymentId:(NSString*)paymentId;&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   // GetPaymentStateConnectionHandler.m&lt;br /&gt;
   #import &amp;quot;GetPaymentStateConnectionHandler.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;Parameters.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;BarionGetPaymentStateResponse.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @implementation GetPaymentStateConnectionHandler&lt;br /&gt;
&lt;br /&gt;
   - (id)initWithDelegate:(id&amp;lt;GetPaymentStateConnectionHandlerDelegate&amp;gt;)delegate paymentId:(NSString*)paymentId&lt;br /&gt;
   {&lt;br /&gt;
      self = [super init];&lt;br /&gt;
      if(self)&lt;br /&gt;
      {&lt;br /&gt;
         _delegate = delegate;&lt;br /&gt;
        &lt;br /&gt;
         NSString* urlString = [NSString stringWithFormat: @&amp;quot;%@%@&amp;quot;,[Parameters getBarionPaymentStateUrl], paymentId];&lt;br /&gt;
         [self startGETWithUrlString: urlString];&lt;br /&gt;
      }&lt;br /&gt;
      return self;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)requestComplete:(NSDictionary *)result&lt;br /&gt;
   {&lt;br /&gt;
      [_delegate getPaymentStateSuccessed: result];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)error:(NSArray *)barionErrors&lt;br /&gt;
   {&lt;br /&gt;
      if(barionErrors == nil) {&lt;br /&gt;
         [_delegate networkError];&lt;br /&gt;
      } else {&lt;br /&gt;
         [_delegate getPaymentStateFailed: barionErrors];&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===4. step - Initiate payment===&lt;br /&gt;
At any point in the mobile application – where the products you want to pay are available - you should initiate the payment in the Barion System. The Barion IOS Library will check the parameters and if something is wrong, itwill return with an error. The possible error codes can be found on [[Barion_Mobil_Library_Hibakódok|this page]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
   - (IBAction)payWithBarion:(id)sender&lt;br /&gt;
   {&lt;br /&gt;
      _progressAlert = [[UIAlertView alloc] initWithTitle: @&amp;quot;Communicating with the Barion system&amp;quot; message:nil &lt;br /&gt;
         delegate:nil cancelButtonTitle:nil otherButtonTitles:nil, nil];&lt;br /&gt;
      [_progressAlert show];&lt;br /&gt;
      startPaymentHandler = [[StartPaymentConnectionHandler alloc] initWithDelegate:self products: _products];&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===5. step - Get results and redirect===&lt;br /&gt;
If the payment initiation was successful you need to redirect the user to the Barion mobile application or to Barion&amp;#039;s website.&lt;br /&gt;
&lt;br /&gt;
In order for the user to be redirected to the Barion mobile application, the following requirements must be met:&lt;br /&gt;
* The device must have Barion mobile application installed.&lt;br /&gt;
* The installed Barion mobile application version must be above of 3.1.0.&lt;br /&gt;
&lt;br /&gt;
After you successfully initiated the payment you got a &amp;#039;&amp;#039;&amp;#039;PaymentId&amp;#039;&amp;#039;&amp;#039; parameter in the response. Start the Bairon mobile application with this &amp;#039;&amp;#039;&amp;#039;PaymentId&amp;#039;&amp;#039;&amp;#039; by the following:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
   - (void)paymentStartSuccessed:(NSDictionary*)result&lt;br /&gt;
   {&lt;br /&gt;
      startPaymentHandler = nil;&lt;br /&gt;
      [_progressAlert dismissWithClickedButtonIndex:0 animated: YES];&lt;br /&gt;
      BarionStartPaymentResponse* response = [[BarionStartPaymentResponse alloc] initWithJsonDictionary: result];&lt;br /&gt;
      NSURL* url = [NSURL URLWithString:&lt;br /&gt;
         [NSString stringWithFormat: @&amp;quot;barion://?pid=%@&amp;amp;redirectUrl=%@&amp;quot;, response.paymentId, [Parameters redirectUrl]]];&lt;br /&gt;
      if([[UIApplication sharedApplication] canOpenURL: url]) {&lt;br /&gt;
         [[UIApplication sharedApplication] openURL: url];&lt;br /&gt;
      } else {&lt;br /&gt;
         UIStoryboard* sb = [UIStoryboard storyboardWithName: @&amp;quot;Main&amp;quot; bundle:nil];&lt;br /&gt;
         WebViewController* web = [sb instantiateViewControllerWithIdentifier:@&amp;quot;webViewController&amp;quot;];&lt;br /&gt;
         web.paymentId = response.paymentId;&lt;br /&gt;
         web.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;&lt;br /&gt;
         [self.navigationController setViewControllers: [NSArray arrayWithObject: web]];&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)paymentStartFailed:(NSArray*)errors&lt;br /&gt;
   {&lt;br /&gt;
      startPaymentHandler = nil;&lt;br /&gt;
      [_progressAlert dismissWithClickedButtonIndex:0 animated: YES];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)networkError&lt;br /&gt;
   {&lt;br /&gt;
      startPaymentHandler = nil;&lt;br /&gt;
      [_progressAlert dismissWithClickedButtonIndex:0 animated: YES];&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When the Barion mobile application isn&amp;#039;t installed on the user&amp;#039;s device, you need to load Barion&amp;#039;s website in a UIWebView.&lt;br /&gt;
&lt;br /&gt;
====5.1. step - Setup UIWebView====&lt;br /&gt;
We create a new viewcontroller with a full screen Webview and with a UIActivityIndicatorView. In the Interface Builder this will look something like this:&lt;br /&gt;
&lt;br /&gt;
[[Fájl:WebView.png|center|200px]]&lt;br /&gt;
&lt;br /&gt;
Here is the content of the UIViewController for that view above:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   // WebViewController.h&lt;br /&gt;
   #import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   @interface WebViewController : UIViewController &amp;lt;UIWebViewDelegate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   @property (weak, nonatomic) IBOutlet UIWebView* webView;&lt;br /&gt;
   @property (weak, nonatomic) IBOutlet UIActivityIndicatorView* loadIndicator;&lt;br /&gt;
&lt;br /&gt;
   @property (nonatomic, retain) NSString* paymentId;&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   // WebViewController.m&lt;br /&gt;
   #import &amp;quot;WebViewController.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;PaymentResultViewController.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;Parameters.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;AppDelegate.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @implementation WebViewController&lt;br /&gt;
&lt;br /&gt;
   - (void)viewDidLoad {&lt;br /&gt;
      [super viewDidLoad];&lt;br /&gt;
    &lt;br /&gt;
      self.title = @&amp;quot;Barion Smart Books&amp;quot;;&lt;br /&gt;
    &lt;br /&gt;
      [_webView setHidden: YES];&lt;br /&gt;
      [_loadIndicator setHidden: NO];&lt;br /&gt;
      [_loadIndicator startAnimating];&lt;br /&gt;
    &lt;br /&gt;
      NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:&lt;br /&gt;
         [NSURL URLWithString:&lt;br /&gt;
            [NSString stringWithFormat: @&amp;quot;https://barion.com/Pay?Id=%@&amp;quot;, _paymentId]]];&lt;br /&gt;
    &lt;br /&gt;
      [_webView loadRequest: request];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)webViewDidFinishLoad:(UIWebView *)webView&lt;br /&gt;
   {&lt;br /&gt;
      [_loadIndicator stopAnimating];&lt;br /&gt;
      [_loadIndicator setHidden: YES];&lt;br /&gt;
      [_webView setHidden: NO];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error&lt;br /&gt;
   {&lt;br /&gt;
      [_loadIndicator stopAnimating];&lt;br /&gt;
      UIAlertView* alert = [[UIAlertView alloc] initWithTitle: @&amp;quot;Error&amp;quot; message: @&amp;quot;The requested page could not load&amp;quot; &lt;br /&gt;
         delegate: nil cancelButtonTitle: @&amp;quot;OK&amp;quot; otherButtonTitles: nil, nil];&lt;br /&gt;
      [alert show];&lt;br /&gt;
      UIStoryboard* sb = [UIStoryboard storyboardWithName: @&amp;quot;Main&amp;quot; bundle:nil];&lt;br /&gt;
      PaymentResultViewController* result = [sb instantiateViewControllerWithIdentifier:@&amp;quot;paymentResultViewController&amp;quot;];&lt;br /&gt;
      result.url = [NSURL URLWithString: [NSString stringWithFormat:@&amp;quot;%@?paymentId=%@&amp;quot;, [Parameters redirectUrl], _paymentId]];&lt;br /&gt;
      [self.navigationController setViewControllers: [NSArray arrayWithObject: result]];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType&lt;br /&gt;
   {&lt;br /&gt;
      if ([[request.URL absoluteString] hasPrefix: [Parameters redirectUrl]]) {&lt;br /&gt;
         [((AppDelegate*)[UIApplication sharedApplication].delegate) openPaymentResultViewControllerWithUrl: request.URL];&lt;br /&gt;
         return NO;&lt;br /&gt;
      }&lt;br /&gt;
      return YES;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===6. step - Handling redirect===&lt;br /&gt;
You need to implement these methods in your application&amp;#039;s AppDelegate.m file.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {&lt;br /&gt;
      [self openPaymentResultViewControllerWithUrl: userActivity.webpageURL];&lt;br /&gt;
      return YES;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)openPaymentResultViewControllerWithUrl:(NSURL*)url&lt;br /&gt;
   {&lt;br /&gt;
      UIStoryboard* sb = [UIStoryboard storyboardWithName: @&amp;quot;Main&amp;quot; bundle:nil];&lt;br /&gt;
      PaymentResultViewController* result = [sb instantiateViewControllerWithIdentifier:@&amp;quot;paymentResultViewController&amp;quot;];&lt;br /&gt;
      result.url = url;&lt;br /&gt;
      result.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;&lt;br /&gt;
      UINavigationController* controller = (UINavigationController*)self.window.rootViewController;&lt;br /&gt;
      [controller setViewControllers: [NSArray arrayWithObject: result]];&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===7. step - Get payment&amp;#039;s result===&lt;br /&gt;
In the Barion mobile application the user can pay or reject the payment. After that, the application closes itself. Then the user will be redirected to the integrator mobile application and you need to request the payment&amp;#039;s status from your server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   // PaymentResultViewController.h&lt;br /&gt;
   #import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br /&gt;
   #import &amp;quot;GetPaymentStateConnectionHandler.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @interface PaymentResultViewController : UIViewController &amp;lt;GetPaymentStateConnectionHandlerDelegate&amp;gt;&lt;br /&gt;
   {&lt;br /&gt;
      GetPaymentStateConnectionHandler* _getPaymentStateHandler;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   @property (nonatomic, retain) NSURL* url;&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&lt;br /&gt;
   // PaymentResultViewController.m&lt;br /&gt;
   #import &amp;quot;PaymentResultViewController.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;BarionError.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;BarionGetPaymentStateResponse.h&amp;quot;&lt;br /&gt;
   #import &amp;quot;Parameters.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   @implementation PaymentResultViewController&lt;br /&gt;
&lt;br /&gt;
   - (void)viewDidLoad {&lt;br /&gt;
      [super viewDidLoad];&lt;br /&gt;
&lt;br /&gt;
      NSString* paymentId = [[_url absoluteString] stringByReplacingOccurrencesOfString: [NSString stringWithFormat: @&amp;quot;%@?paymentId=&amp;quot;, [Parameters redirectUrl]] withString:@&amp;quot;&amp;quot;];&lt;br /&gt;
      _getPaymentStateHandler = [[GetPaymentStateConnectionHandler alloc] initWithDelegate: self paymentId: paymentId];&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)getPaymentStateSuccessed:(NSDictionary*)response&lt;br /&gt;
   {&lt;br /&gt;
      _getPaymentStateHandler = nil;&lt;br /&gt;
      BarionGetPaymentStateResponse* paymentState = [[BarionGetPaymentStateResponse alloc] initWithJsonDictionary: response];&lt;br /&gt;
      // you can find the payment details in this object&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)getPaymentStateFailed:(NSArray*)barionErrors&lt;br /&gt;
   {&lt;br /&gt;
      _getPaymentStateHandler = nil;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   - (void)networkError&lt;br /&gt;
   {&lt;br /&gt;
      _getPaymentStateHandler = nil;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   @end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the &amp;#039;&amp;#039;&amp;#039;BarionGetPaymentStateResponse&amp;#039;&amp;#039;&amp;#039; object you can easily get the payment details.&lt;/div&gt;</summary>
		<author><name>Macika</name></author>
	</entry>
</feed>