Hello everyone, I've created a payment plugin in nop 4.6. at this point I need to save attributes for order but order is not yet saved in DB ( proccess Payment). Getting order by guid returns null. What should I do? I tried to do like PayPal but I got confused and it always return null for order.
There is no order to get. The order is created later. One way is to temporarily save the attributes as generic attributes the add them to the order when it is created i.e. use PostPaymentProcess
Hello everyone, I've created a payment plugin in nop 4.6. at this point I need to save attributes for order but order is not yet saved in DB ( proccess Payment)
The process Payment (used by on-site payment) method executes before an order is placed while the PostProcess (used by redirection payment methods) method executes after an order is placed so you can get the order by the GUID only in the PostProcess method.
What attribute are you trying to save? The checkout attributes and the selected product attributes are automatically saved when the order is placed in the Order and the OrderItem tables respectively.
There is no order to get. The order is created later. One way is to temporarily save the attributes as generic attributes the add them to the order when it is created i.e. use PostPaymentProcess
I want to do that but saving attributes needs an entity to use it for getting the attribute next.
Hello everyone, I've created a payment plugin in nop 4.6. at this point I need to save attributes for order but order is not yet saved in DB ( proccess Payment)
The process Payment (used by on-site payment) method executes before an order is placed while the PostProcess (used by redirection payment methods) method executes after an order is placed so you can get the order by the GUID only in the PostProcess method.
What attribute are you trying to save? The checkout attributes and the selected product attributes are automatically saved when the order is placed in the Order and the OrderItem tables respectively.
Api send me back a transactionId and two tokens for each request. And I have to keep them and use them until the end of payment proccess, all.