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

[OrderRefactor][Order][Checkout] Proceed to Payment - [Step2] Create Checkout payment with Payment Provider (Paypal) #1130

Open
nashtech-vietvuhoang1 opened this issue Oct 7, 2024 · 1 comment
Assignees

Comments

@nashtech-vietvuhoang1
Copy link

nashtech-vietvuhoang1 commented Oct 7, 2024

Yas will integrate will Paypal for Payment Gateway,
So there is the need to create an Adapter Service as Paypal Payment service to integrate to Payal.

In this ticket, when Payment Provider is mentioned, we can understand this is the Paypal Payment service

Workflow

Payment Flow  Init Payment Checkout on Paypal

Description

  • When Payment Checkout object is created by ticket #1121, the CDC Created Event will be deliver to Payment Event Topic,
  • Payment Service will handle this CDC_EVENT_PAYMENT_CREATED event to call to Paypal (via Paypal Payment service) to initialize the Checkout Order object (Paypal API Create Order )
  • Then the Payment Service will update the Internal Checkout Payment object with { status=PROCESSING, payment_provider_checkout_id = Paypal Order ID}
  • CDC_EVENT_PAYMENT_UPDATED will be send to Payment Event Topic then be handled by Order Service to update Associate Checkout { checkout_id, status=PAYMENT_PROCESSING, progress=PAYMENT_CREATED, attributes { payment_id, payment_provider_checkout_id } }
  • The Storefront will call interval (each 30s) to Order Service to check State of Checkout and Payment Status
@nashtech-vietvuhoang1 nashtech-vietvuhoang1 changed the title [OrderRefactor][Order][Checkout] Proceed to Payment - [Step2] Process payment with Payment Provider (Paypal) [OrderRefactor][Order][Checkout] Proceed to Payment - [Step2] Create Checkout payment with Payment Provider (Paypal) Oct 7, 2024
@nashtech-vietvuhoang1
Copy link
Author

Checkout Lifecycle

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

2 participants