Class: Vpago::AcledaMiniApp::Checkout
- Inherits:
-
Vpago::AcledaV2::Checkout
- Object
- Vpago::AcledaV2::Checkout
- Vpago::AcledaMiniApp::Checkout
- 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
-
#acleda_deeplink ⇒ Object
The deeplink string handed to acledaJSBridge.call('startPayment', { acleda_deeplink: ... }) Ensures openSessionV2 has run (persisting paymentTokenid for later getTxnStatus verification) before returning the deeplinkUrl.
-
#deeplink? ⇒ Boolean
The mini app always uses the deeplink + JS bridge, regardless of the gateway's configured mode.
Instance Method Details
#acleda_deeplink ⇒ Object
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.
9 10 11 |
# File 'lib/vpago/acleda_mini_app/checkout.rb', line 9 def deeplink? true end |