dodirectpayment api expecting paymentstatus but no such variable in response

BigTurkey
Contributor
Contributor

I am trying to do direct payment and i am expecting a paymentstatus code of completed or processed to consider payment recieved.  but i don't get that parameter.  Any ideas?  am i wrong to even expect that?

Thanks

I made the following request:

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:ebay:api:PayPalAPI" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes">
<soapenv:Header>
<ns:RequesterCredentials>
<ebl:Credentials>
<ebl:Username>merchant2_api1.dcm.com</ebl:Username>
<ebl:Password>66LP9UJT8BED3T8U</ebl:Password>
<ebl:Signature>A9l.LI4g.XybA.wyt8BlkNuIcjNnAXR8fLrlil.OJ5.mmCbw7Snz-d7a</ebl:Signature>
</ebl:Credentials>
</ns:RequesterCredentials>
</soapenv:Header>
<soapenv:Body>
<ns:DoDirectPaymentReq>
<ns:DoDirectPaymentRequest>
<ebl:Version>204.0</ebl:Version>
<ebl:DoDirectPaymentRequestDetails>
<ebl:PaymentAction>Sale</ebl:PaymentAction>
<ebl:PaymentDetails>
<ebl:OrderTotal currencyID="USD">300.00</ebl:OrderTotal>
<ebl:ButtonSource>PayPal_SDK</ebl:ButtonSource>
</ebl:PaymentDetails>
<ebl:CreditCard>
<ebl:CreditCardType>Amex</ebl:CreditCardType>
<ebl:CreditCardNumber>372290882514794</ebl:CreditCardNumber>
<ebl:ExpMonth>9</ebl:ExpMonth>
<ebl:ExpYear>2020</ebl:ExpYear>
<ebl:CardOwner>
<ebl:PayerName>
<ebl:FirstName>Joyce</ebl:FirstName>
<ebl:LastName>Rowe</ebl:LastName>
</ebl:PayerName>
<ebl:Address>
<ebl:Name>Joyce Rowe</ebl:Name>
<ebl:Street1>2288 Murphy Streets</ebl:Street1>
<ebl:CityName>New York City</ebl:CityName>
<ebl:StateOrProvince>NY</ebl:StateOrProvince>
<ebl:Country>US</ebl:Country>
<ebl:PostalCode>11101</ebl:PostalCode>
</ebl:Address>
</ebl:CardOwner>
</ebl:CreditCard>
</ebl:DoDirectPaymentRequestDetails>
</ns:DoDirectPaymentRequest>
</ns:DoDirectPaymentReq>
</soapenv:Body>
</soapenv:Envelope>

 

and i get the following response

<?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"/>
<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"/>
<Password xsi:type="xs:string"/>
<Signature xsi:type="xs:string"/>
<Subject xsi:type="xs:string"/>
</Credentials>
</RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body id="_0">
<DoDirectPaymentResponse xmlns="urn:ebay:api:PayPalAPI">
<Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2018-04-06T04:09:40Z</Timestamp>
<Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack>
<CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">c923320b54a69</CorrelationID>
<Version xmlns="urn:ebay:apis:eBLBaseComponents">204.0</Version>
<Build xmlns="urn:ebay:apis:eBLBaseComponents">39949200</Build>
<Amount xsi:type="cc:BasicAmountType" currencyID="USD">300.00</Amount>
<AVSCode xsi:type="xs:string">X</AVSCode>
<CVV2Code xsi:type="xs:string">M</CVV2Code>
<TransactionID>2F056791BS038653L</TransactionID>
</DoDirectPaymentResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Login to Me Too
3 REPLIES 3

MTS_Justin
Moderator
Moderator
>> Moving to NVP/SOAP forum

Was my post helpful? If so, please give me a kudos!
Login to Me Too

MTS_Andre
Moderator
Moderator

Hi, to check the status of a transaction you can check in the response if you get "SUCCESS" and also a transaction ID. Here the documentation with the full response details you will receive.

Login to Me Too

BigTurkey
Contributor
Contributor

Hi 

Thank you.  Just to be clear. I should only check for Ach = Success and that transaction ID is not null or empty. correct?

Should i not worry about "paymentResponse"?

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.