Sha256: 7b51d09d799f5c8cb5d29af6edaf67c16a20dbbb44f038aab392ae8c68394013
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
SolidusPaypalCommercePlatform.renderButton = function(payment_method_id, style) { paypal.Buttons({ style: style, createOrder: SolidusPaypalCommercePlatform.sendOrder.bind(null, payment_method_id), onApprove: SolidusPaypalCommercePlatform.approveOrder, onShippingChange: SolidusPaypalCommercePlatform.shippingChange }).render('#paypal-button-container') } SolidusPaypalCommercePlatform.renderCartButton = function(payment_method_id, style) { paypal.Buttons({ style: style, createOrder: SolidusPaypalCommercePlatform.sendOrder.bind(null, payment_method_id), onApprove: SolidusPaypalCommercePlatform.finalizeOrder.bind(null, payment_method_id), onShippingChange: SolidusPaypalCommercePlatform.shippingChange }).render('#paypal-button-container') } SolidusPaypalCommercePlatform.renderProductButton = function(payment_method_id, style) { paypal.Buttons({ style: style, createOrder: SolidusPaypalCommercePlatform.createAndSendOrder.bind(null, payment_method_id), onApprove: SolidusPaypalCommercePlatform.finalizeOrder.bind(null, payment_method_id), onShippingChange: SolidusPaypalCommercePlatform.shippingChange }).render('#paypal-button-container') }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_paypal_commerce_platform-0.0.1 | app/assets/javascripts/spree/frontend/solidus_paypal_commerce_platform/buttons.js |