I'm trying to work out what drupal needs back from the payment gateway to confirm payment and what format it needs it in.

It's so I can configure an unsupported bureau - Netbanx - and it's proving to be a massive bottleneck as I can't find any documentation.

Once the payment is confirmed I need drupal to run some password generation scripts (depending on the product).

Can anyone point me in the rigth direction (and send me back 36 hours).

thanks

Ian

Comments

gordon’s picture

Status: Active » Fixed

Take a look at the paymentapi in either the PayPal module, or CCard, and you should be able to work it out.

As for doing something when a payment is complete checkout the ecommerceapi('payment complete')

cinquetooty’s picture

I'm less than on-the-ball today after working through just to (try to) work this all out...

drupal shopping cart > netbanx > transaction successful > back to drupal for confirmation

How does drupal know which transaction is fulfilled? What URL can I use to fake an approval and what variables do I have to pass back to Drupal?

Is it something like www.mysite.com/store/payment/approved?txid=23

Sorry to be so dim - I'm at my wits-end!

Ian

cinquetooty’s picture

Oh I think I've cracked it now....

it needs to pass $transStatus, $email, $amount, $cartId back to Drupal to know what needs doing next - at least in the Worldpay module.

It seems to work OK.

Ian

Anonymous’s picture

Status: Fixed » Closed (fixed)