Class: Gateway::AcledaMiniApp
- Inherits:
-
AcledaV2
- Object
- AcledaV2
- Gateway::AcledaMiniApp
- Defined in:
- app/models/spree/gateway/acleda_mini_app.rb
Overview
ACLEDA Mini App payment method.
Reuses the ACLEDA V2 integration in deeplink mode: the deeplink produced by
ACLEDA's openSessionV2 API is handed to the ACLEDA super-app through the
acledaJSBridge (startPayment) instead of redirecting the page. Server-side
verification reuses AcledaV2's #check_transaction (getTxnStatus).
Instance Method Summary collapse
-
#deeplink? ⇒ Boolean
The mini app always uses the deeplink + JS bridge, so admins don't need to set the ACLEDA V2 mode.
-
#method_type ⇒ Object
override: partial to render in admin / checkout form lookup.
Instance Method Details
#deeplink? ⇒ Boolean
The mini app always uses the deeplink + JS bridge, so admins don't need to set the ACLEDA V2 mode.
16 17 18 |
# File 'app/models/spree/gateway/acleda_mini_app.rb', line 16 def deeplink? true end |
#method_type ⇒ Object
override: partial to render in admin / checkout form lookup
10 11 12 |
# File 'app/models/spree/gateway/acleda_mini_app.rb', line 10 def method_type 'acleda_mini_app' end |