Welcome Guest, Not a member yet? Register   Sign In
Paypal Credit Card Sale Functions using Website Payments Pro API
#11

[eluser]Iverson[/eluser]
Actually I never tried it with with the default credentials Smile I even tried with the fake cc info and real cc info. Didn't wanna be the village idiot...lol. And fyi I'm logged into the forum via my Blackberry and CI has mobile stylesheets! Sweet!
#12

[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.
#13

[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.
$httpResponse = curl_exec($ch);

print_r($httpResponse);
#14

[eluser]Iverson[/eluser]
Good idea...

Code:
Invalid HTTP Response for POST request(...)
#15

[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.
#16

[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.
#17

[eluser]Sire[/eluser]
http_build_query (php 5) would be nice for this
http://php.net/manual/en/function.http-build-query.php
#18

[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?
#19

[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!
#20

[eluser]Basketcasesoftware[/eluser]
[quote author="Iverson" date="1234235956"]Wow. Heavy duty stuff here. Very nice! Might wanna take your API credentials out Smile[/quote]
Yep. He's from around the St. Louis, Missouri, USA area based on that Zip. ;-P




Theme © iAndrew 2016 - Forum software by © MyBB