You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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..).
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.
@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
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.
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
Activity
joshnuss commentedon Dec 19, 2014
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!
[-]why payment_method only gateway?[/-][+]Support all payment types[/+]dapic commentedon Jan 21, 2015
In China, most online payments are done through the so called "offsite_payments", such as Alipay, Tenpay, Wxpay (WeChat payment)
rposborne commentedon Mar 13, 2015
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.
rposborne commentedon Mar 13, 2015
@joshnuss what are you looking at for the timeline of the refactor to single page checkout?
joshnuss commentedon Mar 13, 2015
@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
rposborne commentedon Mar 13, 2015
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.
joshnuss commentedon Mar 13, 2015
Cool.
Think the flow should work like this:
rposborne commentedon Mar 18, 2015
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.
joshnuss commentedon Mar 18, 2015
Groovy 👍