Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

#62 document the edge cases #82

Merged
merged 5 commits into from
Sep 14, 2017
Merged

Conversation

lojzatran
Copy link
Contributor

Fixes #62

Copy link
Contributor

@andrii-kovalenko-ct andrii-kovalenko-ct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions added

README.md Outdated
1. The user confirms the payment in the first tab
1. Paypal has the address of Berlin, but the shop will deliver the goods to Paris.

**Possible solution:** the backend calls `patch/payments` endpoint every time user changes it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • backend or frontend calls patch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be backend:

* The frontend -  the browser part of the shop. This is what the user interacts with.
* The backend - the shop server.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but how backend get known the a changes the address? Only front-end could know this and call the patch, isn't it?

README.md Outdated
1. user has cart with item1=10€
1. user is redirected to Paypal payment page
1. in a different tab, user changes his cart to e.g. item2=20€
1. user completes the payment in the first tab
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and redirects back to approval page

Copy link
Contributor Author

@lojzatran lojzatran Sep 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the shop instead of approval page. 865ce6b

README.md Outdated
1. user is redirected to Paypal payment page
1. in a different tab, user changes his cart to e.g. item2=20€
1. user completes the payment in the first tab
1. paypal approves the payment for 10€, but the real total amount has changed to 20€
Copy link
Contributor

@andrii-kovalenko-ct andrii-kovalenko-ct Sep 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

real total amount of sold (shipped) items

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README.md Outdated
1. user completes the payment in the first tab
1. paypal approves the payment for 10€, but the real total amount has changed to 20€

**Possible solution:** the backend has to compare total amount of the payment and total amount of payment's cart before calling `patch/payments` endpoint.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before calling execute?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lojzatran
Copy link
Contributor Author

@lojzatran lojzatran merged commit ad57b27 into master Sep 14, 2017
@lojzatran lojzatran deleted the 62-add-edge-cases-to-the-docs branch September 14, 2017 12:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants