XF 2.2 Understanding Payment

gaga

Member
Hello Guys,
I start to build and learn how a payment gateway works

My specific question is with which function the transaction is checked and if it is successful it is written in xf_user_upgrade_active

Is that a function getPaymentResult() ?

Thanks a lot.
 
Payment gateway send notification on your board when payment is success. Then method from Purchasable handler is called. In your case, you need see src/XF/Purchasable/UserUpgrade.php
 
Ok, I start to build a payment gateway (profile) for the local gateway provider. And successfully make a form and redirect to the payment form. I do payment and in the payment gateway log, the transaction is successful, and the form redirects me to account/upgrade-purchase, and receives the message.
Thank you for purchasing this upgrade.

When the payment has been approved, your account will be upgraded.

But nothing happens. In the database xf_purchase_request is write, but not write in xf_user_upgrade_active.

Are you available to check addon? I'll send you in pm, and I'll pay if needed to fix this
 
Back
Top Bottom