Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error thrown if failed to insert purchase log #1892

Closed
MxAshUp opened this issue May 27, 2015 · 7 comments
Closed

No error thrown if failed to insert purchase log #1892

MxAshUp opened this issue May 27, 2015 · 7 comments
Milestone

Comments

@MxAshUp
Copy link

MxAshUp commented May 27, 2015

If a MySQL error occurs inserting a purchase log row, wpec still continues to submit transaction to gateway, and also proceeds to take user to transactions results page.

In wpsc_submit_checkout within ajax.php, after the purchase log is created, there needs to be check to ensure the MySQL query was successful before processing the transaction. The end user should receive an error when this occurs, alerting them to try again.

I will be submitting a pull request soon.

@MxAshUp
Copy link
Author

MxAshUp commented May 28, 2015

To clarify, this is an issue with theme-engine-v1: /wpsc-components/theme-engine-v1/helpers/ajax.php

@instinct
Copy link
Member

We need to put theme engine v1 to rest and fast!

Sent from my iPhone

On 28/05/2015, at 2:04 pm, Dustin Woods notifications@github.com wrote:

To clarify, this is an issue with theme-engine-v1: /wpsc-components/theme-engine-v1/helpers/ajax.php


Reply to this email directly or view it on GitHub.

@JustinSainton
Copy link
Member

It's quite likely that this issue also exists in TEV2

@MxAshUp
Copy link
Author

MxAshUp commented May 28, 2015

TEV2 creates a purchase log record in save_shipping_and_billing_info. Since it creates the purchase log in a separate request from the final transaction step, it may not cause the same issue as in TEV1.

@JustinSainton
Copy link
Member

Hi @DustinWoods,

Let me know if you're able to submit a PR for this, would love to see it merged. Thanks!

@MxAshUp
Copy link
Author

MxAshUp commented Jun 17, 2015

Thanks for reminding me!

@JustinSainton
Copy link
Member

No problem, thanks for the PR!

@JustinSainton JustinSainton modified the milestones: 4.0, Future Release Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants