-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from rondogency/paypal-fix
Fix PayPal email field from Vindicia response typo
- Loading branch information
Showing
3 changed files
with
214 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<soap:Envelope | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" | ||
xmlns:vin="http://soap.vindicia.com/v18_0/Vindicia" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<soap:Body> | ||
<fetchByMerchantTransactionIdResponse xmlns="http://soap.vindicia.com/v18_0/Transaction"> | ||
<return xmlns="" xsi:type="vin:Return"> | ||
<returnCode xsi:type="vin:ReturnCode">200</returnCode> | ||
<soapId xsi:type="xsd:string">1234567890abcdef1234567890abcdef</soapId> | ||
<returnString xsi:type="xsd:string">OK</returnString> | ||
</return> | ||
<transaction xmlns="" xsi:type="vin:Transaction"> | ||
<VID xmlns="" xsi:type="xsd:string">[TRANSACTION_REFERENCE]</VID> | ||
<amount xmlns="" xsi:type="xsd:decimal">[AMOUNT]</amount> | ||
<currency xmlns="" xsi:type="xsd:string">[CURRENCY]</currency> | ||
<divisionNumber xmlns="" xsi:type="xsd:string">12345</divisionNumber> | ||
<merchantTransactionId xmlns="" xsi:type="xsd:string">[TRANSACTION_ID]</merchantTransactionId> | ||
<timestamp xmlns="" xsi:type="xsd:dateTime">2016-10-04T08:06:04-07:00</timestamp> | ||
<account xmlns="" xsi:type="vin:Account"> | ||
<VID xmlns="" xsi:type="xsd:string">[CUSTOMER_REFERENCE]</VID> | ||
<merchantAccountId xmlns="" xsi:type="xsd:string">[CUSTOMER_ID]</merchantAccountId> | ||
<emailAddress xmlns="" xsi:type="xsd:string">test@example.com</emailAddress> | ||
<emailTypePreference xmlns="" xsi:type="vin:EmailPreference">html</emailTypePreference> | ||
<name xmlns="" xsi:type="xsd:string">Test Customer</name> | ||
</account> | ||
<sourcePaymentMethod xmlns="" xsi:type="vin:PaymentMethod"> | ||
<VID xmlns="" xsi:type="xsd:string">[PAYMENT_METHOD_REFERENCE]</VID> | ||
<type xmlns="" xsi:type="vin:PaymentMethodType">PayPal</type> | ||
<payPal xmlns="" xsi:type="vin:PayPal"> | ||
<returnUrl xmlns="" xsi:type="xsd:string">https://vimeo.dev/haggle/pro/vindiciapaypalomnipay/finalize</returnUrl> | ||
<cancelUrl xmlns="" xsi:type="xsd:string">https://vimeo.dev/haggle/pro/vindiciapaypalomnipay/finalize</cancelUrl> | ||
<requestReferenceId xmlns="" xsi:type="xsd:int">1</requestReferenceId> | ||
<referenceId xmlns="" xsi:type="xsd:string">B-27J89747YL063522A</referenceId> | ||
</payPal> | ||
<billingAddress xmlns="" xsi:type="vin:Address"> | ||
<VID xmlns="" xsi:type="xsd:string">99988877766655544433322211100000</VID> | ||
<postalCode xmlns="" xsi:type="xsd:string">[POSTCODE]</postalCode> | ||
<country xmlns="" xsi:type="xsd:string">[COUNTRY]</country> | ||
</billingAddress> | ||
<merchantPaymentMethodId xmlns="" xsi:type="xsd:string">[PAYMENT_METHOD_ID]</merchantPaymentMethodId> | ||
<sortOrder xmlns="" xsi:type="xsd:int">1</sortOrder> | ||
<active xmlns="" xsi:type="xsd:boolean">1</active> | ||
</sourcePaymentMethod> | ||
<statusLog xmlns="" xsi:type="vin:TransactionStatus"> | ||
<status xmlns="" xsi:type="vin:TransactionStatusType">Authorized</status> | ||
<timestamp xmlns="" xsi:type="xsd:dateTime">2018-06-15T08:06:05-07:00</timestamp> | ||
<paymentMethodType xmlns="" xsi:type="vin:PaymentMethodType">PayPal</paymentMethodType> | ||
<payPalStatus xmlns="" xsi:type="vin:TransactionStatusPayPal"> | ||
<token xmlns="" xsi:type="xsd:string">[TOKEN]</token> | ||
<paypalEmail xmlns="" xsi:type="xsd:string">[PAYPAL_EMAIL]</paypalEmail> | ||
<payerId xmlns="" xsi:type="xsd:string">ABCDEFG123456</payerId> | ||
<authCode xmlns="" xsi:type="xsd:string">000</authCode> | ||
<redirectUrl xmlns="" xsi:type="xsd:string">https://www.sandbox.paypal.com</redirectUrl> | ||
</payPalStatus> | ||
</statusLog> | ||
<statusLog xmlns="" xsi:type="vin:TransactionStatus"> | ||
<status xmlns="" xsi:type="vin:TransactionStatusType">New</status> | ||
<timestamp xmlns="" xsi:type="xsd:dateTime">2018-06-15T08:06:04-07:00</timestamp> | ||
<paymentMethodType xmlns="" xsi:type="vin:PaymentMethodType">PayPal</paymentMethodType> | ||
<payPalStatus xmlns="" xsi:type="vin:TransactionStatusPayPal"> | ||
<token xmlns="" xsi:type="xsd:string">[TOKEN]</token> | ||
<paypalEmail xmlns="" xsi:type="xsd:string">[PAYPAL_EMAIL]</paypalEmail> | ||
<payerId xmlns="" xsi:type="xsd:string">ABCDEFG123456</payerId> | ||
<authCode xmlns="" xsi:type="xsd:string">000</authCode> | ||
<redirectUrl xmlns="" xsi:type="xsd:string">https://www.sandbox.paypal.com</redirectUrl> | ||
</payPalStatus> | ||
</statusLog> | ||
<paymentProcessor xmlns="" xsi:type="xsd:string">ProcessorName</paymentProcessor> | ||
<paymentProcessorTransactionId xmlns="" xsi:type="xsd:string">123XYZ</paymentProcessorTransactionId> | ||
<transactionItems xmlns="" xsi:type="vin:TransactionItem"> | ||
<sku xmlns="" xsi:type="xsd:string">[SKU]</sku> | ||
<indexNumber xmlns="" xsi:type="xsd:int">1</indexNumber> | ||
<itemType xmlns="" xsi:type="vin:TransactionItemType">Purchase</itemType> | ||
<name xmlns="" xsi:type="xsd:string">Generic item</name> | ||
<price xmlns="" xsi:type="xsd:decimal">[AMOUNT]</price> | ||
<quantity xmlns="" xsi:type="xsd:decimal">1</quantity> | ||
<taxClassification xmlns="" xsi:type="xsd:string">[TAX_CLASSIFICATION]</taxClassification> | ||
<taxType xmlns="" xsi:type="xsd:string">Exclusive Sales</taxType> | ||
<subtotal xmlns="" xsi:type="xsd:decimal">[AMOUNT]</subtotal> | ||
<total xmlns="" xsi:type="xsd:decimal">[AMOUNT]</total> | ||
</transactionItems> | ||
<transactionItems xmlns="" xsi:type="vin:TransactionItem"> | ||
<sku xmlns="" xsi:type="xsd:string">Total Tax</sku> | ||
<indexNumber xmlns="" xsi:type="xsd:int">2</indexNumber> | ||
<itemType xmlns="" xsi:type="vin:TransactionItemType">Purchase</itemType> | ||
<name xmlns="" xsi:type="xsd:string">Total Tax</name> | ||
<price xmlns="" xsi:type="xsd:decimal">0</price> | ||
<quantity xmlns="" xsi:type="xsd:decimal">1</quantity> | ||
<taxClassification xmlns="" xsi:type="xsd:string">TaxExempt</taxClassification> | ||
<taxType xmlns="" xsi:type="xsd:string">Exclusive Sales</taxType> | ||
<tax xmlns="" xsi:type="vin:TaxItem"> | ||
<jurisdiction xmlns="" xsi:type="xsd:string">COUNTRY</jurisdiction> | ||
<name xmlns="" xsi:type="xsd:string">XY COUNTRY SALES TAX</name> | ||
<amount xmlns="" xsi:type="xsd:decimal">[TAX_AMOUNT]</amount> | ||
</tax> | ||
<discount xmlns="" xsi:type="xsd:decimal">0</discount> | ||
<subtotal xmlns="" xsi:type="xsd:decimal">0</subtotal> | ||
<total xmlns="" xsi:type="xsd:decimal">[TAX_AMOUNT]</total> | ||
</transactionItems> | ||
<sourceIp xmlns="" xsi:type="xsd:string">[IP_ADDRESS]</sourceIp> | ||
<nameValues xmlns="" xsi:type="vin:NameValuePair"> | ||
<name xmlns="" xsi:type="xsd:string">[ATTRIBUTE_1_NAME]</name> | ||
<value xmlns="" xsi:type="xsd:string">[ATTRIBUTE_1_VALUE]</value> | ||
</nameValues> | ||
<nameValues xmlns="" xsi:type="vin:NameValuePair"> | ||
<name xmlns="" xsi:type="xsd:string">[ATTRIBUTE_2_NAME]</name> | ||
<value xmlns="" xsi:type="xsd:string">[ATTRIBUTE_2_VALUE]</value> | ||
</nameValues> | ||
</transaction> | ||
</fetchByMerchantTransactionIdResponse> | ||
</soap:Body> | ||
</soap:Envelope> |