Jump to content

What Is The Correct Way To Get Your Order Back After 3Trd Party Payment


Recommended Posts

Hi all,

 

I'm making a third party payment module.

I get direct en delayed callbacks from a third party payment system.

So i cannot depend on the context object.

 

What is the most correct way to get my order back to change the status of the order?

Which data should i pass trough the payment provider en

with which method should i get the order back?

 

I found something based upon the order reference.

$oOrders = new Order();

$aOrdersFound = $oOrders->getByReference("REFERENCE");

$oCurrentOrder = $aOrders->getFirst());

I found something like this. But "getFirst()" does not feel okay.

With this solution in send the order reference trough the payment provider

 

What is the most correct way to get my order back to change the status of the order?

Which data should i pass trough the payment provider en

with which method should i get te order back?

 

 

Thnx for the advice

Link to comment
Share on other sites

Hi Jochem,

No experience with building payment modules, but to get an idea maybe look at the various modules available and see which one comes close to what you are trying to do, and look what they do to communicate back and forth...

 

My 2 cents,

Pascal.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...