-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/36803 minor updates workflow collection #91
Feature/36803 minor updates workflow collection #91
Conversation
README.md
Outdated
The project demo website https://poc-mediaopt2.frontend.site/ is built using three parts: | ||
1. The connector itself, provided in this repository | ||
2. The PayPal client api for the frontend integration. The client is available at [npm](https://www.npmjs.com/package/paypal-commercetools-client) and [github](https://github.com/mediaopt/paypal-commercetools-client). If for some reason you can't use the client for your integration - you are obliged to use [PayPal JS SDK](https://developer.paypal.com/sdk/js/) instead. | ||
3. The client is integrated in commercetools frontend. Using commercetools frontend for storefront is optional. The integration details can be seen ad [github](https://github.com/mediaopt/paypal-commercetools-cofe-integration). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be seen here
or in
. Ad doesnt fit here.
README.md
Outdated
| client ID | CTP_CLIENT_ID) | the ID of your commercetools API client | | ||
| client secret | CTP_CLIENT_SECRET | the secret of your commercetools API client | | ||
| scope | CTP_SCOPE | the scope of your commercetools API client | | ||
|
||
- [PayPal business customer account](https://www.google.com/aclk?sa=l&ai=DChcSEwjPz82wyK2GAxWSiVAGHUwzAVoYABABGgJkZw&gclid=Cj0KCQjw3tCyBhDBARIsAEY0XNnOcx462M0ej3RizrdN9a_6fl2O5_bfwVqOOzyHxz_9M7L10B8NfL0aAgA6EALw_wcB&sig=AOD64_0bOBSNaFhCg-wypewofyWkrpoBWg&q&adurl&ved=2ahUKEwiIqcewyK2GAxXlSkEAHejBBbQQqyQoAHoECAIQDA) and [API client](https://developer.paypal.com/api/rest/#link-getclientidandclientsecret) credentials,namely: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a google search link. Did you mean https://www.paypal.com/de/business/getting-started ?
docs/workflows/README.MD
Outdated
|
||
# Installation | ||
|
||
The connector itself is the backend part of the payment process, it is designed to be used together with the [PayPal client api](https://www.npmjs.com/package/paypal-commercetools-client) for the frontend integration. If it is not possible for some reason you are obliged to use [PayPal JS SDK](https://developer.paypal.com/sdk/js/) instead. We also use commercetools frontend (further referred as CoFe), but it is an optional part, shown here for illustration how to develop necessary API for the PayPal client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is not possible for some reason
feels like the sentence is missing something. If what is not possible? Connector or Client API?
docs/workflows/README.MD
Outdated
|
||
## Connector installation | ||
|
||
There are two possible ways to integrate the connector, both fully covered in the mentioned documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
covered in what mentioned documentation? the following documentation?
docs/workflows/README.MD
Outdated
1. Installed [directly from the commercetools marketplace](https://docs.commercetools.com/merchant-center/connect). | ||
2. Create your own deployment using [commercetools connect API](https://docs.commercetools.com/connect/getting-started). | ||
|
||
The connector includes a merchant center application, which is automatically installed and deployed when installing the connector, but it might be needed to update the custom application link after the deployment, as described in [commercetools documentation](https://docs.commercetools.com/merchant-center-customizations/deployment-examples/commercetools-connect). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to restructure this sentence? I get it but it reads "weird" if you get what I mean.
docs/workflows/README.MD
Outdated
2. PayPal specific part, which includes setting the custom type for payment and obtaining the client token. | ||
3. PayPal payment method specific part, that can differ for different payment methods | ||
|
||
The first two categories are covered in the Postman collection Initial part, the third is provided separately for some methods in the corresponding subfolder of the Payment specific folder. To go through the whole payment process of a target method you need to follow first all the calls in initial folder in a Postman collection and then all the specific for this method. All the necessary data are already provided in the collection, so you can just run the requests and see the results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, a bit of a convoluted sentence. Maybe something like:
... process of a target method you first need to follow all the calls found in the initial folder from the Postman collection. Then you need to look at the payment method specific calls
?
docs/workflows/README.MD
Outdated
## Payment method specific flow | ||
|
||
MOST OF THE METHODS REQUIRES USER APPROVAL AFTER CREATE PAYPAL ORDER. IT MEANS THAT THE USER SHOULD APPROVE THE ORDER VIA THE LINK, PROVIDED IN THE RESPONSE. | ||
In case if this is applicable for a certain method - it is mentioned in the method description. For sandbox testing sanbdox customer credentials or [sandbox testing cards provided in the PayPal documentation](https://developer.paypal.com/tools/sandbox/card-testing/) can be used to approve the order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo sandbox customer
not sanbdox
^^
docs/workflows/README.MD
Outdated
|
||
## Standard flow | ||
|
||
In this section we describe the flow that is used at our the [demo website](https://poc-mediaopt2.frontend.site/) where the PayPal client is integrated into CoFe and the connector is installed at the merchant center. It is important to note that the CoFe project structure involves two separate parts - frontend and backend and [our integration](https://github.com/mediaopt/paypal-commercetools-cofe-integration/tree/main/packages/poc) involves both of them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at our demo website
- no need for the
docs/workflows/README.MD
Outdated
|
||
In our integration the PayPal client components are imported at [CoFe frontend](https://github.com/mediaopt/paypal-commercetools-cofe-integration/tree/main/packages/poc/frontend) and the API required for proper communication between the components and commercetools HTTP API ((and therefore the PayPal commercetools connector) is developed at the [CoFe backend](https://github.com/mediaopt/paypal-commercetools-cofe-integration/tree/main/packages/poc/backend). | ||
|
||
The cart creation before the payment with PayPal begins and the checkout procedure after the PayPal payment is complete are created by standard CoFe methods and are out of scope of this documentation. To create the cart via only HTTP API please see the [official commercetools documentation](https://docs.commercetools.com/api/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be only via HTTP...
and not via only HTTP...
docs/workflows/README.MD
Outdated
|
||
1. On rendering the button the createPaymentUrl is called to obtain/generate the relevant payment id. | ||
2. If relevant getClientToken is called to obtain the client token at the PayPal side. | ||
3. The button is than rendered by the client via PayPal JS SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then
not than
for time ;)
docs/workflows/README.md
Outdated
1. using only the connector for the backend side implementation | ||
2. using the [PayPal client](https://www.npmjs.com/package/paypal-commercetools-client) in commercetools Frontend (CoFe) [integration](https://github.com/mediaopt/paypal-commercetools-cofe-integration/tree/main). | ||
|
||
The workflow that only includes backend calls through Postman is also provided as a [workflow Postman Collection](PayPal-commercetools-workflow.postman_collection.json). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and in the next sentence you use also
. So I think here it can just be removed to be a bit prettier to read.
docs/workflows/README.md
Outdated
|
||
The workflow that only includes backend calls through Postman is also provided as a [workflow Postman Collection](PayPal-commercetools-workflow.postman_collection.json). | ||
|
||
The sequence diagram that show a bit more details about the backend side of a payment process with PayPal buy now payment is also provided at [sequence_diagram_paypal_payment.md](sequence_diagram_paypal_payment.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think .. shows more details about...
is a better structure.
Secondly Buy Now is a PayPal product so I would capitalize it.
docs/workflows/README.md
Outdated
2. as Pay Upon Invoice does not require immediate payment - we trigger a custom checkout process for pay upon invoice (with extra liability message) | ||
3. after the user completes invoice payment on the RatePay side the webhook at the connector side is triggered to capture the order. | ||
|
||
#### PayPal buy now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, capitalize Buy Now here
docs/workflows/README.md
Outdated
|
||
In this section we describe the flow that is used at our [demo website](https://poc-mediaopt2.frontend.site/) where the PayPal client is integrated into CoFe and the connector is installed at the merchant center. It is important to note that the CoFe project structure involves two separate parts - frontend and backend and [our integration](https://github.com/mediaopt/paypal-commercetools-cofe-integration/tree/main/packages/poc) involves both of them. Frontend is responsible for a client side and backend for the server (see also [Architecture.pdf](../Architecture.pdf)). | ||
|
||
In our integration the PayPal client components are imported at [CoFe frontend](https://github.com/mediaopt/paypal-commercetools-cofe-integration/tree/main/packages/poc/frontend) and the API required for proper communication between the components and commercetools HTTP API ((and therefore the PayPal commercetools connector) is developed at the [CoFe backend](https://github.com/mediaopt/paypal-commercetools-cofe-integration/tree/main/packages/poc/backend). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have two opening brackets here? ((and therefore
No description provided.