Jump to content

Payment gateway callback


ccoleman

Recommended Posts

Hi everyone,

I would *really* appreciate some replies on this because I've hit a brick wall.

I'm creating a custom payment gateway with 3d secure, and in my callback file I'm logging the payment info and adding the invoice payment as described in the example merchant gateway callback file. However after calling

callback3DSecureRedirect($invoiceId, $paymentSuccess);

 

nothing happens. The page is not redirected back to the invoice. Just nothing. I get stuck on the Pay by Credit Card page (screenshot attached).

Here's a snippet from my callback file:

$invoiceId = checkCbInvoiceID($invoiceId, $gatewayParams['name']);
checkCbTransID($transactionId);

addInvoicePayment(
    $invoiceId,
    $transactionId,
    $transactionAmount,
    0.00,
    $gatewayParams['name']
);

logTransaction($gatewayParams['name'],
               json_encode(array('$_POST' => $_POST,
                     '$merchantData' => $merchantData)),
               'Successful');

$paymentSuccess = true;
callback3DSecureRedirect($invoiceId, $paymentSuccess);

whmcstest.blacknighthosting.com-2019.11.27-15_40_40.png

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for all the help and replies on this. Really loving this community. So engaging and helpful...

I resolved it myself. The issue was a set of extraneous rules related to a separate issue in our Apache conf regarding Access-Control-Allow-Origin and setting X-Frame-Options to "sameorigin".

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated