Closed lcduong closed 1 month ago
Thank you. Please check the docker build is failing.
I cannot get it to run using docker autodeployment. Getting the following errors:
1 error and 7 warnings
save-state
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/save-state
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/save-state
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/save-state
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/save-state
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/Hi @mariobehling, this is similar case with Stripe we discussed, if admin did not config Paypal key in global setting, User must config by theirself in paypemt setting, if admin did setup key in global setting, User just will see action to connect with paypal and integrate with Paypal business account set up in global. For more clarify, please see below testing
Testing Admin did not config global key
Admin has configured global key for paypal
First we need a business paypal account (for testing, I'm using sandbox account) note private key, public key and account id (merchant id)
set noted key in admin global setting
There is option connect with Paypal in payment setting for event which not configured yet
Now just follow step by step and connect with business paypal account
Enable payment method and start selling your tickets
Please ping me if any confuse.
Getting Internal Server Error when accessing the Payment options page of an event.
This server error happens after I fill in the Paypal details into the global admin settings page.
Getting Internal Server Error when accessing the Payment options page of an event.
Hi @mariobehling , could you share with me the logs?
Hi @mariobehling, issue is fixed, please test it again.
@lcduong I am getting
An error occurred during connecting with PayPal, please try again.
Could it be that you also need paypal-checkout-serversdk 1.0.* in order to get this working?
Please resolve conflicts.
@sourcery-ai review
This pull request updates the PayPal integration to a more recent version, replacing the deprecated paypalrestsdk
with the new paypalcheckoutsdk
. The changes include significant refactoring of the payment processing logic, updates to the settings and configuration, and enhancements to the user interface for PayPal payments.
Files | Changes |
---|---|
src/pretix/plugins/paypal/payment.py src/pretix/plugins/paypal/views.py src/pretix/plugins/paypal/signals.py src/pretix/plugins/paypal/urls.py src/pretix/plugins/paypal/apps.py |
Refactored the PayPal integration to use the new paypalcheckoutsdk , updated settings and configuration, and added new views and signal handlers. |
src/pretix/base/services/cart.py src/pretix/presale/views/__init__.py |
Updated cart and presale views to support the new PayPal payment methods. |
src/pretix/plugins/paypal/templates/plugins/paypal/redirect.html src/pretix/plugins/paypal/templates/plugins/paypal/paypal_pay.html src/pretix/plugins/paypal/templates/plugins/paypal/control.html src/pretix/plugins/paypal/templates/plugins/paypal/checkout_payment_confirm.html src/pretix/plugins/paypal/templates/plugins/paypal/checkout_payment_form.html |
Added and updated templates to support the new PayPal payment methods and user interface. |
src/pretix/plugins/paypal/static/plugins/paypal/paypal.js |
Added a new JavaScript file for handling PayPal payments using the new SDK. |
src/pretix/plugins/paypal/paypal_http_client.py src/pretix/plugins/paypal/paypal_environment.py |
Added new modules for handling HTTP requests and configuring the PayPal environment using the new SDK. |
Summary by Sourcery
This pull request updates the PayPal integration to a more recent version, incorporating the latest PayPal SDKs and APIs. It introduces support for PayPal Alternative Payment Methods (APM), enhances the configuration interface, and improves error handling and logging. The user interface for PayPal payment options has also been enhanced to dynamically render available payment methods.