Created
October 23, 2012 00:06
-
-
Save v-fedorov/3935699 to your computer and use it in GitHub Desktop.
PaypalGateway
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
opening connection to api-3t.sandbox.paypal.com... | |
opened | |
<- "POST /2.0/ HTTP/1.1\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept: */*\r\nUser-Agent: Ruby\r\nConnection: close\r\nHost: api-3t.sandbox.paypal.com\r\nContent-Length: 2084\r\n\r\n" | |
<- "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header><RequesterCredentials xmlns=\"urn:ebay:api:PayPalAPI\" xmlns:n1=\"urn:ebay:apis:eBLBaseComponents\" env:mustUnderstand=\"0\"><n1:Credentials><Username>vfedor_1350949605_biz_api1.netflexity.com</Username><Password>1350949632</Password><Subject/><Signature>AS9H6pq36bxQVVDf6bJSWWGeMVfeAl.1OeD5yjuU9mKmHF7uh5PvkkJZ</Signature></n1:Credentials></RequesterCredentials></env:Header><env:Body><DoDirectPaymentReq xmlns=\"urn:ebay:api:PayPalAPI\">\n <DoDirectPaymentRequest xmlns:n2=\"urn:ebay:apis:eBLBaseComponents\">\n <n2:Version>72</n2:Version>\n <n2:DoDirectPaymentRequestDetails>\n <n2:PaymentAction>Authorization</n2:PaymentAction>\n <n2:PaymentDetails>\n <n2:OrderTotal currencyID=\"USD\">10.00</n2:OrderTotal>\n <n2:ButtonSource>ActiveMerchant</n2:ButtonSource>\n </n2:PaymentDetails>\n <n2:CreditCard>\n <n2:CreditCardType>Visa</n2:CreditCardType>\n <n2:CreditCardNumber>4961541978902304</n2:CreditCardNumber>\n <n2:ExpMonth>10</n2:ExpMonth>\n <n2:ExpYear>2017</n2:ExpYear>\n <n2:CVV2>123</n2:CVV2>\n <n2:CardOwner>\n <n2:PayerName>\n <n2:FirstName>Vladimir</n2:FirstName>\n <n2:LastName>Fedorov</n2:LastName>\n </n2:PayerName>\n <n2:Payer/>\n <n2:Address>\n <n2:Name>Test User</n2:Name>\n <n2:Street1>123 S Main St</n2:Street1>\n <n2:Street2></n2:Street2>\n <n2:CityName>Akron</n2:CityName>\n <n2:StateOrProvince>OH</n2:StateOrProvince>\n <n2:Country>US</n2:Country>\n <n2:Phone>(310)555-5555</n2:Phone>\n <n2:PostalCode>44333</n2:PostalCode>\n </n2:Address>\n </n2:CardOwner>\n </n2:CreditCard>\n <n2:IPAddress>127.0.0.1</n2:IPAddress>\n </n2:DoDirectPaymentRequestDetails>\n </DoDirectPaymentRequest>\n</DoDirectPaymentReq>\n</env:Body></env:Envelope>" | |
-> "HTTP/1.1 200 OK\r\n" | |
-> "Date: Tue, 23 Oct 2012 00:03:54 GMT\r\n" | |
-> "Server: Apache\r\n" | |
-> "Content-Length: 1909\r\n" | |
-> "Connection: close\r\n" | |
-> "Content-Type: text/xml; charset=utf-8\r\n" | |
-> "\r\n" | |
reading 1909 bytes... | |
-> "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:cc=\"urn:ebay:apis:CoreComponentTypes\" xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\" xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\" xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2002/12/secext\" xmlns:ed=\"urn:ebay:apis:EnhancedDataTypes\" xmlns:ebl=\"urn:ebay:apis:eBLBaseComponents\" xmlns:ns=\"urn:ebay:api:PayPalAPI\"><SOAP-ENV:Header><Security xmlns=\"http://schemas.xmlsoap.org/ws/2002/12/secext\" xsi:type=\"wsse:SecurityType\"></Security><RequesterCredentials xmlns=\"urn:ebay:api:PayPalAPI\" xsi:type=\"ebl:CustomSecurityHeaderType\"><Credentials xmlns=\"urn:ebay:apis:eBLBaseComponents\" xsi:type=\"ebl:UserIdPasswordType\"><Username xsi:type=\"xs:string\"></Username><Password xsi:type=\"xs:string\"></Password><Signature xsi:type=\"xs:string\"></Signature><Subject xsi:type=\"xs:string\"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id=\"_0\"><DoDirectPaymentResponse xmlns=\"urn:ebay:api:PayPalAPI\"><Timestamp xmlns=\"urn:ebay:apis:eBLBaseComponents\">2012-10-23T00:04:01Z</Timestamp><Ack xmlns=\"urn:ebay:apis:eBLBaseComponents\">Success</Ack><CorrelationID xmlns=\"urn:ebay:apis:eBLBaseComponents\">5a9bb6787786a</CorrelationID><Version xmlns=\"urn:ebay:apis:eBLBaseComponents\">72</Version><Build xmlns=\"urn:ebay:apis:eBLBaseComponents\">3926908</Build><Amount xsi:type=\"cc:BasicAmountType\" currencyID=\"USD\">10.00</Amount><AVSCode xsi:type=\"xs:string\">X</AVSCode><CVV2Code xsi:type=\"xs:string\">M</CVV2Code><TransactionID>91N85382T81066920</TransactionID></DoDirectPaymentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>" | |
read 1909 bytes | |
Conn close | |
opening connection to api-3t.sandbox.paypal.com... | |
opened | |
<- "POST /2.0/ HTTP/1.1\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept: */*\r\nUser-Agent: Ruby\r\nConnection: close\r\nHost: api-3t.sandbox.paypal.com\r\nContent-Length: 925\r\n\r\n" | |
<- "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header><RequesterCredentials xmlns=\"urn:ebay:api:PayPalAPI\" xmlns:n1=\"urn:ebay:apis:eBLBaseComponents\" env:mustUnderstand=\"0\"><n1:Credentials><Username>vfedor_1350949605_biz_api1.netflexity.com</Username><Password>1350949632</Password><Subject/><Signature>AS9H6pq36bxQVVDf6bJSWWGeMVfeAl.1OeD5yjuU9mKmHF7uh5PvkkJZ</Signature></n1:Credentials></RequesterCredentials></env:Header><env:Body><DoCaptureReq xmlns=\"urn:ebay:api:PayPalAPI\"><DoCaptureRequest xmlns:n2=\"urn:ebay:apis:eBLBaseComponents\"><n2:Version>72</n2:Version><AuthorizationID>91N85382T81066920</AuthorizationID><Amount currencyID=\"USD\">10.00</Amount><CompleteType>Complete</CompleteType><Note/></DoCaptureRequest></DoCaptureReq></env:Body></env:Envelope>" | |
-> "HTTP/1.1 200 OK\r\n" | |
-> "Date: Tue, 23 Oct 2012 00:04:01 GMT\r\n" | |
-> "Server: Apache\r\n" | |
-> "Content-Length: 2995\r\n" | |
-> "Connection: close\r\n" | |
-> "Content-Type: text/xml; charset=utf-8\r\n" | |
-> "\r\n" | |
reading 2995 bytes... | |
-> "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:cc=\"urn:ebay:apis:CoreComponentTypes\" xmlns:wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\" xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\" xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2002/12/secext\" xmlns:ed=\"urn:ebay:apis:EnhancedDataTypes\" xmlns:ebl=\"urn:ebay:apis:eBLBaseComponents\" xmlns:ns=\"urn:ebay:api:PayPalAPI\"><SOAP-ENV:Header><Security xmlns=\"http://schemas.xmlsoap.org/ws/2002/12/secext\" xsi:type=\"wsse:SecurityType\"></Security><RequesterCredentials xmlns=\"urn:ebay:api:PayPalAPI\" xsi:type=\"ebl:CustomSecurityHeaderType\"><Credentials xmlns=\"urn:ebay:apis:eBLBaseComponents\" xsi:type=\"ebl:UserIdPasswordType\"><Username xsi:type=\"xs:string\"></Username><Password xsi:type=\"xs:string\"></Password><Signature xsi:type=\"xs:string\"></Signature><Subject xsi:type=\"xs:string\"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id=\"_0\"><DoCaptureResponse xmlns=\"urn:ebay:api:PayPalAPI\"><Timestamp xmlns=\"urn:ebay:apis:eBLBaseComponents\">2012-10-23T00:04:07Z</Timestamp><Ack xmlns=\"urn:ebay:apis:eBLBaseComponents\">Success</Ack><CorrelationID xmlns=\"urn:ebay:apis:eBLBaseComponents\">53aa00a2f19c2</CorrelationID><Version xmlns=\"urn:ebay:apis:eBLBaseComponents\">72</Version><Build xmlns=\"urn:ebay:apis:eBLBaseComponents\">3926908</Build><DoCaptureResponseDetails xmlns=\"urn:ebay:apis:eBLBaseComponents\" xsi:type=\"ebl:DoCaptureResponseDetailsType\"><AuthorizationID>91N85382T81066920</AuthorizationID><PaymentInfo xsi:type=\"ebl:PaymentInfoType\"><TransactionID>5UE52865P72458041</TransactionID><ParentTransactionID xsi:type=\"ebl:TransactionId\">91N85382T81066920</ParentTransactionID><ReceiptID>5568-9430-4500-0266</ReceiptID><TransactionType xsi:type=\"ebl:PaymentTransactionCodeType\">web-accept</TransactionType><PaymentType xsi:type=\"ebl:PaymentCodeType\">instant</PaymentType><PaymentDate xsi:type=\"xs:dateTime\">2012-10-23T00:04:05Z</PaymentDate><GrossAmount xsi:type=\"cc:BasicAmountType\" currencyID=\"USD\">10.00</GrossAmount><FeeAmount xsi:type=\"cc:BasicAmountType\" currencyID=\"USD\">0.59</FeeAmount><TaxAmount xsi:type=\"cc:BasicAmountType\" currencyID=\"USD\">0.00</TaxAmount><ExchangeRate xsi:type=\"xs:string\"></ExchangeRate><PaymentStatus xsi:type=\"ebl:PaymentStatusCodeType\">Completed</PaymentStatus><PendingReason xsi:type=\"ebl:PendingStatusCodeType\">none</PendingReason><ReasonCode xsi:type=\"ebl:ReversalReasonCodeType\">none</ReasonCode><ProtectionEligibility xsi:type=\"xs:string\">Ineligible</ProtectionEligibility><ProtectionEligibilityType xsi:type=\"xs:string\">None</ProtectionEligibilityType></PaymentInfo></DoCaptureResponseDetails></DoCaptureResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>" | |
read 2995 bytes | |
Conn close | |
Purchase complete! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment