ActiveMerchant Integration Example?

Where can I find a complete example of using ActiveMerchant Integrations? I see many examples of using gateways, but I could not understand how integration should be used (for example, what do you do in the controller actions return_url and cancel_return_url ?)

+4
source share
2 answers

I don’t know if there is any specific example of using ActiveMerchant Integrations (maybe this will help: http://peepcode.com/products/activemerchant-pdf ), but I can say that it depends on the payment gateway.

I would suggest to conduct a test transaction and see which parameters will be returned to you by the gateway, and then create a code that uses these parameters.

For example, in the case of 2checkout, you want to check the hash of the return that 2checkout returns in order to verify the transaction and make a payment record (it is possible to keep the original parameters obtained from 2checkout). Of course, this also depends on the type of notification method that your payment gateway provides.

+1
source

I added an Active Merchant integration example with the 2Checkout tutorial if you're still interested.

+4
source

Source: https://habr.com/ru/post/1310337/


All Articles