Paypal Credit Card Sale Functions using Website Payments Pro API |
[eluser]Iverson[/eluser]
Actually I never tried it with with the default credentials ![]()
[eluser]Iverson[/eluser]
I actually have the DirectPayment checked for my API username. Interestingly enough, the curl error code of 0 is defined as "All fine. Proceed as usual". So it's something with the $httpResponse if check.
[eluser]danoph[/eluser]
Hmm. I guess try outputting httpResponse immediately after the curl_exec and see what that does: Code: // Get response from the server.
[eluser]Iverson[/eluser]
Good idea... Code: Invalid HTTP Response for POST request(...)
[eluser]Aleazus[/eluser]
Here is a fix to this script. The Forum posts semicolons after any &... WRONG: $nvpreq = "METHOD=$methodName_&VERSION;=$version&PWD;=$API_Password&USER;=$API_UserName&SIGNATURE;=$API_Signature$nvpStr_"; CHANGED: remove ';' after VERSION,PWD,USER,SIGNATURE etc. and in your $nvpStr too. Each ';' breaks the code.
[eluser]Ravi Bakraniya[/eluser]
i am getting DoDirectPayment failed: Array ( [TIMESTAMP] => 2010-12-09T10:58:56Z [CORRELATIONID] => c0dec82d3cae [ACK] => Failure [VERSION] => 51.0 [BUILD] => 1620725 [L_ERRORCODE0] => 10752 [L_SHORTMESSAGE0] => Gateway Decline [L_LONGMESSAGE0] => This transaction cannot be processed. [L_SEVERITYCODE0] => Error [L_ERRORPARAMID0] => ProcessorResponse [L_ERRORPARAMVALUE0] => 0000 [AMT] => 1.54 [CURRENCYCODE] => USD [AVSCODE] => X [CVV2MATCH] => S ) i am using local XAMPP server.
[eluser]Sire[/eluser]
http_build_query (php 5) would be nice for this http://php.net/manual/en/function.http-build-query.php
[eluser]Ravi Bakraniya[/eluser]
[quote author="Sire" date="1291956781"]http_build_query (php 5) would be nice for this http://php.net/manual/en/function.http-build-query.php[/quote] thanks for reply, i have read about build query but i don't understand that where and how to use it?
[eluser]phpmonster[/eluser]
Hi Guys, Is this PayPal script up to date? I tried it on wamp local server, but keep getting a blank page. I have curl enabled and I also removed the ';' extra semicolons. using CI 2.0 Any thoughts? Thanks!
[eluser]Basketcasesoftware[/eluser]
[quote author="Iverson" date="1234235956"]Wow. Heavy duty stuff here. Very nice! Might wanna take your API credentials out ![]() Yep. He's from around the St. Louis, Missouri, USA area based on that Zip. ;-P |
Welcome Guest, Not a member yet? Register Sign In |