Page tree
Skip to end of metadata
Go to start of metadata

Для використання в сервісі грошових переказів цифрових гаманців Apple Pay та Google Pay використовується передача поля typeTAVV.


В елементі fullCardInfo додається поле extDataToken

XSD Schema
<xs:complexType name="extDataToken">
    <xs:sequence>
        <xs:element name="TAVV" type="typeTAVV"/>
        <xs:element name="TokenProvider" type="typeTokenProvider" minOccurs="0"/>
    </xs:sequence>
</xs:complexType>

<xs:simpleType name="typeTAVV">
    <xs:restriction base="xs:string">
        <xs:pattern value="[A-Za-z0-9+/=]{28}"/>
    </xs:restriction>
</xs:simpleType>

<xs:simpleType name="typeTokenProvider" final="restriction">
    <xs:restriction base="xs:string">
        <xs:enumeration value="GOOGLEPAY"/>
        <xs:enumeration value="APPLEPAY"/>
    </xs:restriction>
</xs:simpleType>

Приклад запиту


Запит
<?xml version="1.0" encoding="UTF-8"?>
<transactionrequest>
	<merchantid>1800000</merchantid>
	<terminalid>E1800000</terminalid>
	<trackingid>fyb3183288</trackingid>
	<amount>
		<value>308</value>
		<currencycode>980</currencycode>
		<surcharge>10</surcharge>
	</amount>
	<funding>
		<pares>
			<status>Y</status>
			<cavv>AAAB*****AA=</cavv>
			<eci>05</eci>
		</pares>
		<cvv2>***</cvv2>
		<cardinfo>
			<cardnumber>428121******0006</cardnumber>
			<expyear>2025</expyear>
			<expmonth>08</expmonth>
			<extdatatoken>
				<tavv>AAABCFg3aUFBSBAQlTdpEFX/7P4=</tavv>
				<tokenprovider>GooglePay</tokenprovider>
			</extdatatoken>
		</cardinfo>
		<scaexemption>01</scaexemption>
		<senderinfo>
			<name>Sender Name</name>
			<address>
				<zip>55555</zip>
				<country>UKR</country>
				<city>Sender Kiev</city>
				<street>Sender Street</street>
			</address>
		</senderinfo>
	</funding>
	<payment>
		<recipientcardnumber>411997******0000</recipientcardnumber>
		<paymentinfo>
			<name>recipient name</name>
			<address>
				<zip>1111167</zip>
				<country>UKR</country>
				<city>Kiev recipient</city>
				<street>recipient street</street>
			</address>
		</paymentinfo>
		<dateofbirth>11111980</dateofbirth>
		<message>payment message</message>
		<senderphonenumber>1122333</senderphonenumber>
		<senderaccountnumber>26385001215533</senderaccountnumber>
	</payment>
	<signature
		xmlns="http://www.w3.org/2000/09/xmldsig#">
		<signedinfo>
			<canonicalizationmethod algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315">
				<signaturemethod algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1">
					<reference uri="">
						<transforms>
							<transform algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature">
						</transforms>
						<digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1">
						<digestvalue>QPItI2AHHzS5t6CapOz1IQ7ClWk=</digestvalue>
					</reference>
		</signedinfo>
 		<signaturevalue>FT9JYgHa0YVSGuji28AWyrq8I1DSdhnmVX6CHKiyseH0DYKVmTYVKfUZ+hHJTSmCfb0yoIr0uf4W
 w+YZnox00EtAr1QgHN1NwxSXRQHkMnlPAPxc5pYDbSlSDIPJ6YaxpAEimsdOn9VovFY5KK2b3M2J
 Y/tRRaTEIQo68IpuJMM=</signaturevalue>
	</signature>
</transactionrequest>



Формат відповіді при використанні Google Pay і Apple Pay не змінюється
Відповідь
<transactionresponse>
	<trackingid>fyb8616474</trackingid>
	<status>
		<code>000</code>
		<message>Approved</message>
	</status>
	<fundingresult>
		<date>2021-03-15 16:53:37 +0200</date>
		<cvresult>M3</cvresult>
		<merchantcliche>
			<merchantid>1800000</merchantid>
			<terminalid>E1800000</terminalid>
			<mcc>6012</mcc>
		</merchantcliche>
		<approvalcode>816393</approvalcode>
		<authcode>000</authcode>
		<rrn>107416**2890</rrn>
	</fundingresult>
	<paymentresult>
		<date>2021-03-15 16:53:37 +0200</date>
		<merchantcliche>
			<merchantid>1800000</merchantid>
			<terminalid>E1800000</terminalid>
			<mcc>6012</mcc>
		</merchantcliche>
		<approvalcode>816394</approvalcode>
		<authcode>000</authcode>
		<rrn>107416**2908</rrn>
	</paymentresult>
</transactionresponse>


  • No labels