Class: Vpago::AcledaMiniApp::Checkout

Inherits:
Vpago::AcledaV2::Checkout
  • Object
show all
Defined in:
lib/vpago/acleda_mini_app/checkout.rb

Overview

ACLEDA Mini App checkout. Reuses ACLEDA V2's openSessionV2 flow to obtain a deeplink, which is passed to the ACLEDA super-app via the acledaJSBridge (startPayment) instead of redirecting the page.

Instance Method Summary collapse

Instance Method Details

The deeplink string handed to acledaJSBridge.call('startPayment', { acleda_deeplink: ... }) Ensures openSessionV2 has run (persisting paymentTokenid for later getTxnStatus verification) before returning the deeplinkUrl.



17
18
19
20
# File 'lib/vpago/acleda_mini_app/checkout.rb', line 17

def acleda_deeplink
  call if @response.nil?
  deeplink_url
end

#deeplink?Boolean

The mini app always uses the deeplink + JS bridge, regardless of the gateway's configured mode.

Returns:

  • (Boolean)


9
10
11
# File 'lib/vpago/acleda_mini_app/checkout.rb', line 9

def deeplink?
  true
end