ruby on rails - Paypal express checkout using activemerchant and ipn -
i'm stuck getting activemerchants paypal express ipn notification work.
my workflow looks this:
# authorize payment user gets redirected.. def auth ... gateway.setup_authorization(total_as_cents, setup_authorization_params) ... end # purchase authorized sum def purchase ... purchase_params = { token: @order.payment_params[:token], payer_id: @order.payment_params[:payer_id], currency: current_tenant.currency.unit, notify_url: paypal_ipn_callback_url } response = gateway.purchase(total_as_cents, purchase_params) ... end in paypal docs says notify_url deprecated use paymentrequest_n_notifyurl instead. have no clue how tell paypal express gateway.
my ipn callback doesn't called assume notifyurl param doesn't work anymore. paypal in sandbox mode should make no difference right?
any hints?
i believe if using paypal express means doing deep integration system, , don't need ipn, can response
response = gateway.purchase(total_as_cents, purchase_params) and information it, , response object
activemerchant::billing::paypalexpressresponse the ipn used basic paypal integration, no api calls app, paypal url redirect params.
Comments
Post a Comment