Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Payment issues :/

Quote Reply
Payment issues :/
Hi,

I'm just setting up one of my sites with Payments, for testing my new Affiliate plugin.

For some reason, when it returns to the site, it shows the page with:

Quote:
Add a Link

Please completely fill out the form, and we'll add your link as soon as possible.

I've attached 3 HTML files with my setup on the Payment side of things (only a dev install Tongue)

For some reason, it just doesn't return to the right page :/

BTW - all the links I've tested adding, are coming up with ExpiryDate set as "awaiting payment" - so I'm guessing its not being called right?

TIA for any suggestions. I need to get this working, otherwise I can't complete my Affiliate plugin Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Payment issues :/ In reply to
Hi,

I just noticed some info in my error_log too:

Quote:
postback.cgi called, but no payment method postback could be identified. at postback.cgi line 60.

It looks like it down to this line:

Code:
Links::Payment->invalid_postback;
die 'postback.cgi called, but no payment method postback could be identified.';

So, postback.cgi is being called, but it just doesn't seem to be able to work out that the payment method was paypal, and go from there :/

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Payment issues :/ In reply to
Check your Info payment logs, it should have a dump of $IN. If it's a paypal transaction, there should be a key 'txn_type' somewhere in there.

Adrian
Quote Reply
Re: [brewt] Payment issues :/ In reply to

My postback.cgi script is doing the same thing I think the 'txn_type' is there.

Any ideas how to get it working?
Quote Reply
Re: [polobean] Payment issues :/ In reply to
I am getting a server 500 error when you try to access the postback.cgi script can anyone tell me why?
Quote Reply
Re: [polobean] Payment issues :/ In reply to
Script error out at: (something is wrong in the code)

main();
sub main {
# -----------------------------------------------------------------------------
# Unlike the other .cgi's, we don't perform the various checks (such as the
# enabled/disabled check) because we ought to receive a posted payment even if
# the site has been disabled for some reason.
# Check for payment postbacks
if ($CFG->{payment}->{enabled} and $CFG->{payment}->{postback} and @{$CFG->{payment}->{postback}}) {
for my $postback (@{$CFG->{payment}->{postback}}) {
next unless exists $CFG->{payment}->{$postback->{type}}->{methods}->{$postback->{method}}
and exists $CFG->{payment}->{$postback->{type}}->{used}->{$postback->{method}};
my $var = $postback->{var};
if (my $val = $IN->param($var)) {
if (!$postback->{var_regex} or $val =~ /$postback->{var_regex}/) {
if (Links::Payment->postback($postback)) {
return;
}
}
}
}
}
Links::Payment->invalid_postback;
die 'postback.cgi called, but no payment method postback could be identified.';
}
Quote Reply
Re: [polobean] Payment issues :/ In reply to
The postback system uses a 500 server error to tell the remote server something was wrong so it will try again later.

You need to dump the cgi input to see what's getting posted to your postback

Adrian