signalpoint / commerce

The Drupal Commerce module for DrupalGap.
8 stars 10 forks source link

How to skip payment page? #17

Open tolesolo opened 7 years ago

tolesolo commented 7 years ago

Hai Tyler, How to skip payment page? or to replace the payment page to custom module same using drupalgap.menu_links['checkout/payment/%'].pageshow ?

signalpoint commented 7 years ago

@tolesolo This module has an example implementation of a custom payment page that uses Stripe:

https://github.com/signalpoint/commerce_drupalgap_stripe/blob/7.x-1.x/commerce_drupalgap_stripe.js

Essentially you just need to create a hook_menu() item in your custom DrupalGap module for the checkout/payment/% page. Then have your page_callback and/or pageshow put together a DrupalGap Form, or whatever UX you need, to collect payment information.