← 输入框|github.com|刷新
Skip to content

Support all payment types #39

Open

Description

@qinghe

file module.coffee
if !paymentMethods.gateway alert 'Gateway is not configured in Spree...'

why only check gateway? what if check, COD?

Activity

  1. joshnuss commented on Dec 19, 2014

    @joshnuss
    Contributor

    Hi @qinghe,

    Initial version is only supporting CC (since that is the most common use case), but we are open to supporting other methods (including PayPal, Google Checkout etc..).

    PRs welcome!

  2. changed the title [-]why payment_method only gateway?[/-] [+]Support all payment types[/+] on Dec 19, 2014
  3. dapic commented on Jan 21, 2015

    @dapic

    In China, most online payments are done through the so called "offsite_payments", such as Alipay, Tenpay, Wxpay (WeChat payment)

  4. rposborne commented on Mar 13, 2015

    @rposborne
    Contributor

    We are looking to support Paypal, These clearly should be "extensions" that call in the relevant layout for the given payment gateway, if needed.

    I do think some code should be in the parent sprangular, namely methods for selecting gateways (tabs?) and a construct to pass relevant data to the extension if any processing or manipulation is required to support a given gateway request.

  5. rposborne commented on Mar 13, 2015

    @rposborne
    Contributor

    @joshnuss what are you looking at for the timeline of the refactor to single page checkout?

  6. joshnuss commented on Mar 13, 2015

    @joshnuss
    Contributor

    @rpo The one page checkout refactoring will be ready early next week.

    For PayPal Express, it can be done by adding an tag that links to the paypal extensions checkout process (will direct user to paypal, and then back to store).

    Generally express checkout links (like PayPal, Google) would be better in the cart page, and bypass the current checkout, since PayPal can provide address data. (i.e. give user 2 checkout options "Checkout with PayPal", "Checkout with Credit Card").

    We will need to add some extension points in the core to make this happen. PR welcome

  7. rposborne commented on Mar 13, 2015

    @rposborne
    Contributor

    Agreed, rightnow I am trying to make use of the existing better_paypal_express gem and trying to figure out a meaningful way to rewrite it's redirects into the JS application to make clean behavior vs straight reimplementation. When I get a good handle I'll see where we can break up the implementation for flexibility and as a extension.

  8. joshnuss commented on Mar 13, 2015

    @joshnuss
    Contributor

    Cool.

    Think the flow should work like this:

    • On cart page, user clicks either "Checkout with Paypal" (or google checkout/amazon etc) or "Checkout with Credit Card" (use icons/images) (extract cart buttons to ng-include so its easy to override in new extensions)
    • When user clicks "Checkout with PayPal", they are redirected to paypal's checkout screen
    • User logs in to PayPal and enters address & card details, they click "Pay now" and are redirected back to the sprangular app's "express checkout" confirm page.
    • User selects shipping rate, and confirms order details (tax, summary etc)
    • User click "Place Order", the shipping rate and tax rate are sent over to paypal and money is debited from PayPal account
    • User is redirected to /checkout/complete page
  9. rposborne commented on Mar 18, 2015

    @rposborne
    Contributor

    We are tracking a paypal extension here.
    https://github.com/feldfix/sprangular_paypal_express/tree/2-4-stable

    There are currently some issues but primary communication is present.

  10. joshnuss commented on Mar 18, 2015

    @joshnuss
    Contributor

    Groovy 👍

  11. added this to the Icebox milestone on Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions