Comments (7)
Dan,
(I'm assuming that's your name based on your github user...)
I reviewed the code for register. It receives the cart, but only uses the email and password to create a blank profile. I've requested that be changed so that it uses more of the cart object to make the initial record creation more entensive. I'll keep you posted of the status.
Thanks,
Perry
from responsive_checkout.
We've committed a fix to make register work better. I've updated the docs with an optional parameter to specify whether you wisht the cart billing or shipping to be used as the main address for the customer. The default is billing.
The fix will be live at end of day.
Thanks,
Perry
from responsive_checkout.
This looks great. Is there any way to add the credit card number too? Not sure what all would go into that. Sorry I forgot to mention that in my initial email. Also I've been a bit focused on the my account API the last few days and had forgotten to check this thread sooner for updates.
from responsive_checkout.
Here's how storing credit cards works for the "normal" checkout:
- In the Customer Profile Settings, there is a checkbox for "Allow Customer Profiles to Store Credit Cards"
Home -> Customer Profiles -> Settings - If checked, the customer is prompted on the final review screen with a checkbox "Store my credit card securely for future reuse".
The javascript checkouts (v1, v2, and v3 [rest]) don't have this step #2 checkbox plumbed into its pipeline. It might help to understand why. Our javascript checkouts grew from the trial offer market that needed simple one or two page checkouts with lots of gui flexiblity. None of them needed customer profiles for their sales.
So, as the javascript checkouts have grown in popularity and huge sites like http://www.flirtyaprons.com/ use them, we've slowly added customer profile functionality to them as requested.
If we added credit card storing to the rest api, we feel like prompting the user to store their card would be the polite thing to do. The only time we don't prompt them is for auto orders (recurring) where the business agreement implies a stored credit card.
To keep things consistent with the regular checkout, we think the best REST based model would be add a flag to the cart checkout or finalizeOrder method that triggers the storing of the credit card upon successful charge. We don't want to add a property to the cart object itself as that makes for a huge amount of cascading changes.
It would then be left to you to design the appropriate prompts to the customer. You could always bypass the prompting and store it without their knowledge. We leave that to you. The same power will be available to the normal checkouts when the StoreFront comes online and the merchant has complete control of the pages. They will easily be able to change the checkbox to a hidden field.
Thoughts? We'd have to plumb this out, mind you. :)
from responsive_checkout.
I think that sounds like a great way to do things. Would be simple enough for us to add the customer prompts to our cart and then change the corresponding flag that'll be passed to the checkout method.
from responsive_checkout.
The cart.storeCreditCard field is now in play. I've updated the reference implementation and demo to use the checkbox to show how it's done. Search the code for 'storeCreditCard'.
Thanks,
Perry
from responsive_checkout.
Stylin. I'll get on this today. I also noticed that you've update the cart object recently to include customer accounts (with credit cards!) as well. No more having to access two separate rest models. Yeah! Should help to simplify things significantly. Of course, that means I'm going to have to re-do most of what I've finished so far... Oh well. Better for us in the long run.
Thanks, Perry.
from responsive_checkout.
Related Issues (20)
- credit card field values are missing HOT 3
- Checkout Registration HOT 2
- Microsoft Edge HOT 3
- Turn Off Billing City / Zip Validation HOT 1
- CC Hosted Fields Iframes - Loads slow in some systems HOT 13
- Custom Receipt Page HOT 7
- Testing Credit Card Failed Attempt Limit Feature HOT 2
- Missing Hosted Fields (CC Number and CVV) HOT 10
- Order ID / Authorize Transaction ID Passed Back to Cart HOT 3
- Payment Declined but Receipt is generated in Ultracart HOT 2
- Using the new rest_proxy.php script with legacy catalog-structured merchant accounts HOT 3
- responsive_checkout HOT 13
- item.html
- I cant run commands giving error HOT 10
- Checkout is not working HOT 8
- upsell custom page setFinalizeAfter HOT 1
- How do I get the value of the credit card type HOT 3
- Load additional states/provinces when the country changes
- International Orders Outside US, Canada, Australia or Manual State/Province Method Needed HOT 2
- Delete Coupons Function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from responsive_checkout.