Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default API request and response.

    Is there a way to have Zen Cart store the API request and response in a way that would make sence to PayPal. They just want the raw request and response as sent over the internet.

  2. #2
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: API request and response.

    PayPal sais it was sent the following
    ITEMAMT 1\,037.92

    PayPal sais the slash caused an api error 10413

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: API request and response.

    If you have the PayPal Debug Log-to-File option enabled, then in your paypal logs folder you'll see PayPal_CURL_xxxxxxx.log files generated. There are three per Express Checkout transaction: SetExpressCheckout, GetExpressCheckoutDetails, and DoExpressCheckoutPayment. Those log files contain the data that was sent to PayPal, and the response back.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: API request and response.

    If I sent the following to PayPay would they not point out it could not have been the actual data because of the number of space characters? Or is it the actual data exactly as sent or received?


    _request - breakpoint 2.5 - postfields: ITEMAMT=1,037.92&SHIPPINGAMT=11.19&TAXAMT=0.00&AMT=1.00&L_NUMBER0=Ultralife U9VL-J&L_QTY0=192&L_NAME0=Ultralife U9VL-J - 9V Aluminum jacket - Lithium&L_AMT0=5.35&L_TAXAMT0=0.00&L_NUMBER1=Energizer A544BP&L_QTY1=4&L_NAME1=Energizer A544 - 6 Volt, 150 mAh - Alkaline (1 Pack)&L_AMT1=2.68&L_TAXAMT1=0.00.....................

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: API request and response.

    Um ... there's obviously a lot more history behind whatever problem you're trying to troubleshoot with them than what you've shared here.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: API request and response.

    Yea, I was sure it was not going to be a Zen Cart issue. But its looking like it is so here goes. The error was a 10413. And the names and values show why.

    ITEMAMT=1,037.92
    SHIPPINGAMT=11.19
    TAXAMT=0.00
    AMT=1.00

    ITEMAMT+SHIPPINGAMT+TAXAMT needs to be equal to AMT.

 

 

Similar Threads

  1. DoExpressCheckoutPayment API request and response
    By tahiti amin in forum General Questions
    Replies: 1
    Last Post: 16 Apr 2013, 03:21 PM
  2. Replies: 3
    Last Post: 12 Feb 2011, 12:34 AM
  3. integrate the request call to the BadCustomer API
    By jaishem in forum General Questions
    Replies: 1
    Last Post: 30 Aug 2010, 04:17 PM
  4. UPS Shipping DOWN? - No response on API's
    By MotoDelta in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 20 Nov 2009, 03:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg