paypal #93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/Paypal_checkout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary by CodeRabbit
New Features
Documentation
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.
requested review from @russellballestrini
assigned to @russellballestrini
Walkthrough
Adds PayPal and Adyen payment integrations: new PayPalUserShop model, Shop and Invoice fields, PayPal checkout and management UI, webhook handlers for PayPal and Stripe, request flags, migrations, SDK dependency, templates, extensive tests, and docs.
Changes
CHANGELOG.rst,README.rst,docs/PAYPAL.md,docs/ADYEN.mddevelopment.ini,test.iniapp.paypal.sandbox_mode,app.paypal.webhook_id,app.payments.paypal.enabled) and enables PayPal sandbox in tests.make_post_sell/models/__init__.py,make_post_sell/models/meta.py,make_post_sell/models/paypal_user_shop.py,make_post_sell/models/shop.py,make_post_sell/models/invoice.pyPayPalUserShopmodel and export; CLASS_TO_TABLE mapping updated.Shopgains PayPal and Adyen credential fields, enabled flags, readiness properties, SDK accessors, andpaypal_user_shop(user).Invoicegains PayPal/Stripe/Adyen tracking columns, payment_method resolution, and lookup helpers.make_post_sell/request_methods.pypaypal_enabled,paypal_globally_enabled,adyen_enabled,adyen_globally_enabled.make_post_sell/routes.py/billing/disconnect-paypal,/paypal/create-order/{cart_id},/paypal/complete-checkout/{cart_id},/adyen/create-session/{cart_id},/adyen/complete-checkout/{cart_id}, and webhook endpoints for PayPal/Stripe/Adyen.make_post_sell/templates/billing.j2,make_post_sell/templates/cart_checkout.j2,make_post_sell/templates/shop_settings.j2make_post_sell/views/billing.py,make_post_sell/views/cart.py,make_post_sell/views/webhooks.py,make_post_sell/views/shop.pypaypal_user_shopand implementsdisconnect_paypal. Cart view addspaypal_create_orderandpaypal_complete_checkoutflows. Newwebhooks.pyimplements PayPal and Stripe webhook handlers with verification, idempotency, invoice updates, unlocks, and email dispatch. Shop view handles Adyen settings form.make_post_sell/scripts/alembic/versions/418933067d81_add_paypal_credentials_to_shop.py,.../3734955e7379_add_adyen_payment_columns_to_shop_and_.py,.../63d935094f97_add_stripe_payment_tracking_columns_to_.pymps_shopandmps_invoice, add Adyen columns onmps_shopandmps_invoice, and add Stripe tracking columns onmps_invoice.requirements.py3.txtpaypalrestsdkdependency.make_post_sell/tests/test_functional.py,make_post_sell/tests/test_integration.py,make_post_sell/tests/test_models.pyCHANGELOG.rstSequence Diagram(s)
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~60 minutes
📜 Recent review details
Configuration used: defaults
Review profile: CHILL
Plan: Free
📥 Commits
Reviewing files that changed from the base of the PR and between
a2e2092a31and4210bc1421.📒 Files selected for processing (13)
docs/ADYEN.mdmake_post_sell/models/invoice.pymake_post_sell/models/shop.pymake_post_sell/request_methods.pymake_post_sell/routes.pymake_post_sell/scripts/alembic/versions/3734955e7379_add_adyen_payment_columns_to_shop_and_.pymake_post_sell/templates/shop_settings.j2make_post_sell/tests/test_functional.pymake_post_sell/tests/test_integration.pymake_post_sell/tests/test_models.pymake_post_sell/views/cart.pymake_post_sell/views/shop.pymake_post_sell/views/webhooks.py🚧 Files skipped from review as they are similar to previous changes (1)
Comment
@coderabbitai helpto get the list of available commands and usage tips.changed the description
added 1 commit
31592b69- Add PayPal unit, integration, and sandbox functional testsCompare with previous version
changed the description
added 1 commit
0b89ab2b- Fix test_cart_checkout_for_shop to match current checkout flowCompare with previous version
changed the description
added 1 commit
ac2f5864- Add Stripe payment tracking and webhook resilienceCompare with previous version
changed the description
added 1 commit
a2e2092a- Add privacy warnings to PayPal docs, create Adyen integration docCompare with previous version
changed the description
added 1 commit
4210bc14- Add Adyen payment integrationCompare with previous version
changed the description
mentioned in commit
fe0482ac8a