Comments (4)
I guess a more appropriate question in the case of #2 above would be:
Am I doing this account creation thing right?
Is there a different, more direct, way of creating a customer account after a purchase is made? Right now I'm running through this set of steps when a customer clicks the "Finalize Order" button.
-
Check availability of an account with the provided email address using a Register function call (/rest/cart/register)
-- If not available, show an error message, (begin again)
-- If available, or if there is already an account with that email address but it was created that day (handles server errors after checkout is submitted), an account is "created" and the cart is now logged in (proceed to Step 2) -
Submit the checkout request (/rest/cart/checkout)
-- If Checkout fails, begin again
-- If Checkout completes, all is well ( proceed to Step 3) -
Account gets populated by UltraCart after the order is completed
I sometimes tend to overcomplicate things if I'm not careful. Then again, this comment may just offer some more clarification on what I'm trying to accomplish.
Thanks.
Dan
from responsive_checkout.
Revisiting this...
At the time I submitted this ticket I was worried about a customer registering an account without completing the checkout process and then being able to use that account as a normal account would. Since then, I've devised a way to validate an account based on the purchase of a membership item, and this concern is now moot.
There is still the issue of the register method that I don't quite understand where making a call to /rest/cart/register returns without any errors if I pass it an email and valid password for an account that has already been made. Is this expected behavior? I'm just not clear on why that would be the case.
Thanks for all your help.
from responsive_checkout.
Dan,
I reviewed the code. You should be receiving a 400 response code (bad request) with a header UC-REST-ERROR that says "cannot create account. email already exists.". Can you confirm that you do not? There might be a bug there.
from responsive_checkout.
Closing due to inactivity. Dan, please reopen if the issue still exists.
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.