close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart5 Checkout Failure PayPal Direct Sandbox

Thread began 5/24/2010 3:35 pm by dlovas275157 | Last modified 5/27/2010 10:58 am by Jason Byrnes | 4032 views | 11 replies |

dlovas275157

eCart5 Checkout Failure PayPal Direct Sandbox

I am unable to get my checkout page to submit properly when customers use paypal direct (and enter all info on my site). If they click the "check out with paypal button at the top and checkout on the paypal site the order will submit. But not when using ppdirect on my site.

My checkout_failure.php page only states:

Transaction Not Completed
We're sorry
Your transaction could not be completed.

I have tried to add the debug binding, but no more info is displayed (not even in code view).

I am using a Sandbox Test Account with PayPal.

Is this something wrong on the paypal side, or on my ecart5 code side?

Attached Files
checkout.php.zip
Sign in to reply to this post

dlovas275157

Screenshot...

Sign in to reply to this post

dlovas275157

When I add the following to checkout_failure.php:
<?php echo(PP_DirectPayment_Result("Long Error Message")) ?>

I get the following output:
This transaction cannot be processed due to an invalid merchant configuration.

I am using a Sandbox Account. Is this possible with a Sandbox Account?

My buyer and seller accounts are both Verified and Enabled. Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

invalid merchant configuration means that there is a problem with your paypal account settings. To determine what that problem is, you will need to contact paypal. They will be able to help you with the Merchant account configuration.

Sign in to reply to this post

dlovas275157

Jason,

I contacted PayPal, and spoke directly with Merchant Tech Support.

I was using a Standard PayPal Account and not an account that had been converted to a Website Payments Pro Account. (in a sandbox)

I have converted to a Website Payments Pro Account and rebuilt all my cart and checkout pages.

But I am still getting failed transactions when I checkout/process the payment on my website. According to merchant tech support at paypal, everything is set up properly on the paypal side.

checkout_failure.php displays this error message:
This transaction cannot be processed. Transaction Not Completed.

Not sure what to do next. Any ideas?

Attached Files
checkout.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

add the following code to the cehckout failure page:

php:
<?php  

 
if(!session_id()) session_start(); 

     echo 
"<p>Direct Pay: <br />"
     echo 
"Full Request: ".(isset($_SESSION["PP_DirectPayment_postedValues"])?htmlentities($_SESSION["PP_DirectPayment_postedValues"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["PP_DirectPayment"])?htmlentities($_SESSION["PP_DirectPayment"]):"n/a")."<br /></p>";  
     echo 
"<p>Express Authorize <br />"
     echo 
"Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."<br />"
     echo 
"<p>Express Process: <br />"
     echo 
"Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."<br /></p>"
     echo 
"<p>UPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["hbCart_UPS_FullRequest"])?htmlentities($_SESSION["hbCart_UPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["hbCart_UPS_FullResponse"])?htmlentities($_SESSION["hbCart_UPS_FullResponse"]):"n/a")."<br /></p>";  

     echo 
"<p>FedEX: <br />"
     echo 
"Full Request: ".(isset($_SESSION["hbCart_FedEx_FullRequest"])?htmlentities($_SESSION["hbCart_FedEx_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["hbCart_FedEx_FullResponse"])?htmlentities($_SESSION["hbCart_FedEx_FullResponse"]):"n/a")."<br /></p>";  

     echo 
"<p>USPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["hbCart_USPS_FullRequest"])?htmlentities($_SESSION["hbCart_USPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["hbCart_USPS_FullResponse"])?htmlentities($_SESSION["hbCart_USPS_FullResponse"]):"n/a")."<br /></p>";  
 
?>





this will give the full request and full response from the gateway to help uss determine what the problem is.

NOTE: The full request and full response will contain sensitive information like Credit card numbers and paypal api account information, you will need to remove any sensitive information before posting it here.

Sign in to reply to this post

dlovas275157

Jason,

Thanks for helping me. The output is as follows (personal info removed):

Direct Pay:
Full Request: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents"><Username>REMOVED_USERNAME</Username><Password>REMOVED_PASSWORD</Password><Signature>REMOVED_SIG</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><DoDirectPaymentReq xmlns="urn:ebay:api:PayPalAPI"><DoDirectPaymentRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><PaymentAction>Sale</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">5.67</OrderTotal><ShippingTotal currencyID="USD">3.5</ShippingTotal><ItemTotal currencyID="USD">2</ItemTotal><TaxTotal currencyID="USD">0.17</TaxTotal><ButtonSource>WebAssist.eCartPHP.Pro.DP</ButtonSource><PaymentDetailsItem><Name>West Texas</Name><Amount currencyID="USD">2</Amount><Quantity>1</Quantity><Number>63</Number></PaymentDetailsItem><ShipToAddress><Name>FirstName</Name><Street1>3625 Street Name</Street1><CityName>City</CityName><StateOrProvince>TX</StateOrProvince><PostalCode>75219</PostalCode><Country>US</Country><Phone>2222222222</Phone></ShipToAddress></PaymentDetails><CreditCard><CreditCardType>Visa</CreditCardType><CreditCardNumber>REMOVED_CC#</CreditCardNumber><ExpMonth>5</ExpMonth><ExpYear>2015</ExpYear><CardOwner><PayerStatus>verified</PayerStatus><PayerName><FirstName>FirstName</FirstName><LastName>LastName</LastName></PayerName><Payer>dLastName@dLastName.com</Payer><PayerCountry>US</PayerCountry><Address><Street1>3625 Street Name</Street1><CityName>City</CityName><StateOrProvince>TX</StateOrProvince><Country>US</Country><CountryName>US</CountryName><PostalCode>75219</PostalCode><Phone>2222222222</Phone></Address></CardOwner><CVV2>123</CVV2></CreditCard><IPAddress>12.20.42.126</IPAddress><MerchantSessionId>4d3fsdo48nrjeruuho3dnr8jl7</MerchantSessionId></DoDirectPaymentRequestDetails></DoDirectPaymentRequest></DoDirectPaymentReq></soap:Body></soap:Envelope>
Full 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:ed="urn:ebay:apis:EnhancedDataTypes" 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: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">REMOVED_SIG</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">2010-05-26T19:22:15Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">5c9b079a7691</CorrelationID><Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType"><ShortMessage xsi:type="xs:string">Gateway Decline</ShortMessage><LongMessage xsi:type="xs:string">This transaction cannot be processed.</LongMessage><ErrorCode xsi:type="xs:token">10752</ErrorCode><SeverityCode xmlns="urn:ebay:apis:eBLBaseComponents">Error</SeverityCode><ErrorParameters xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorParameterType" ParamID="ProcessorResponse"><Value xsi:type="xs:string">0000</Value></ErrorParameters></Errors><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1298200</Build><Amount xsi:type="cc:BasicAmountType" currencyID="USD">5.67</Amount><AVSCode xsi:type="xs:string">X</AVSCode><CVV2Code xsi:type="xs:string">S</CVV2Code></DoDirectPaymentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Express Authorize
Full Request: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents"><Username>REMOVED_USERNAME</Username><Password>REMOVED_PASSWORD</Password><Signature>REMOVED_SIG</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><SetExpressCheckoutReq xmlns="urn:ebay:api:PayPalAPI"><SetExpressCheckoutRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><SetExpressCheckoutRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><ReturnURL>http://www.mydomain.com/cart/pp_confirm.php</ReturnURL><CancelURL>http://www.mydomain.com/cart/pp_cancel.php</CancelURL><PaymentAction>Authorization</PaymentAction><PaymentDetails><OrderTotal currencyID="USD">4.58</OrderTotal></PaymentDetails></SetExpressCheckoutRequestDetails></SetExpressCheckoutRequest></SetExpressCheckoutReq></soap:Body></soap:Envelope>
Full 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:ed="urn:ebay:apis:EnhancedDataTypes" 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: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">REMOVED_SIG</Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><SetExpressCheckoutResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2010-05-26T17:40:14Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">1238ddac3cc65</CorrelationID><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1311648</Build><Token xsi:type="ebl:ExpressCheckoutTokenType">EC-6AA9604727135770E</Token></SetExpressCheckoutResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Sign in to reply to this post

dlovas275157

(continued...)

Express Process:
Full Request: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents"><Username>REMOVED_USERNAME</Username><Password>REMOVED_PASSWORD</Password><Signature>REMOVED_SIG</Signature><Subject/></Credentials></RequesterCredentials></soap:Header><soap:Body><DoExpressCheckoutPaymentReq xmlns="urn:ebay:api:PayPalAPI"><DoExpressCheckoutPaymentRequest><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><DoExpressCheckoutPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"><Token>EC-6AA9604727135770E</Token><PaymentAction>Sale</PaymentAction><PayerID>NVBY5K883PEWJ</PayerID><PaymentDetails><OrderTotal currencyID="USD">4.58</OrderTotal><ShippingTotal currencyID="USD">3.5</ShippingTotal><ItemTotal currencyID="USD">1</ItemTotal><TaxTotal currencyID="USD">0.08</TaxTotal><ButtonSource>WebAssist.eCartPHP.Pro.ECO</ButtonSource><PaymentDetailsItem><Name>A LIFETIME WITH LIONS</Name><Amount currencyID="USD">1</Amount><Quantity>1</Quantity><Number>85</Number></PaymentDetailsItem></PaymentDetails></DoExpressCheckoutPaymentRequestDetails></DoExpressCheckoutPaymentRequest></DoExpressCheckoutPaymentReq></soap:Body></soap:Envelope>
Full 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:ed="urn:ebay:apis:EnhancedDataTypes" 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: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">REMOVED_SIG</Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><DoExpressCheckoutPaymentResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2010-05-26T17:41:53Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">7319dc59f6a5</CorrelationID><Version xmlns="urn:ebay:apis:eBLBaseComponents">60.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">1311648</Build><DoExpressCheckoutPaymentResponseDetails xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:DoExpressCheckoutPaymentResponseDetailsType"><Token xsi:type="ebl:ExpressCheckoutTokenType">EC-6AA9604727135770E</Token><PaymentInfo xsi:type="ebl:PaymentInfoType"><TransactionID>22777135DU2280017</TransactionID><ParentTransactionID xsi:type="ebl:TransactionId"></ParentTransactionID><ReceiptID></ReceiptID><TransactionType xsi:type="ebl:PaymentTransactionCodeType">cart</TransactionType><PaymentType xsi:type="ebl:PaymentCodeType">instant</PaymentType><PaymentDate xsi:type="xs:dateTime">2010-05-26T17:41:52Z</PaymentDate><GrossAmount xsi:type="cc:BasicAmountType" currencyID="USD">4.58</GrossAmount><FeeAmount xsi:type="cc:BasicAmountType" currencyID="USD">0.43</FeeAmount><TaxAmount xsi:type="cc:BasicAmountType" currencyID="USD">0.08</TaxAmount><ExchangeRate xsi:type="xs:string"></ExchangeRate><PaymentStatus xsi:type="ebl:PaymentStatusCodeType">Pending</PaymentStatus><PendingReason xsi:type="ebl:PendingStatusCodeType">payment-review</PendingReason><ReasonCode xsi:type="ebl:ReversalReasonCodeType">none</ReasonCode><ProtectionEligibility xsi:type="xs:string">Ineligible</ProtectionEligibility></PaymentInfo><SuccessPageRedirectRequested xsi:type="xs:string">false</SuccessPageRedirectRequested></DoExpressCheckoutPaymentResponseDetails></DoExpressCheckoutPaymentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

UPS:
Full Request: n/a
Full Response: n/a

FedEX:
Full Request: n/a
Full Response: n/a

USPS:
Full Request: n/a
Full Response: n/a

Sign in to reply to this post

Jason ByrnesWebAssist

according to the response from Express checkout, the express checkout was processed successfully.


the response from Direct Checkout was:
error Code: 10752


Short Error Message: Gateway Decline


Long Error Message: This transaction cannot be processed.


Reason: The transaction was declined by the issuing bank, not PayPal. The merchant should attempt another card.


see the following for an error reference:
e_howto_api_nvp_errorcodes


It looks like the merchant bank for the card you used declined the transaction.

Sign in to reply to this post

dlovas275157

Jason,

Thanks for helping. I have contacted PayPal and they are working on it. Apparently there is something wrong with one of their servers causing my sandbox seller account to not allow payments to come through from any sandbox buyer accounts. They tested it with multiple buyer accounts and same issue.

PayPal merchant support had to open a ticket. I will post back the results when they get back to me.

Thanks D.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...