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

Replace pay_to_email with merchant_code in Checkout creation #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lordofweb
Copy link

This PR addresses the issue of using pay_to_email instead of the recommended merchant_code in the Checkout creation process.

Changes made:

  • Updated the create method in src/SumUp/Services/Checkouts.php:
    • Changed parameter $payToEmail to $merchantCode
    • Removed validation for $payToEmail
    • Updated payload to use merchant_code instead of pay_to_email

These changes align the SDK with the current API recommendations as per https://developer.sumup.com/api/checkouts/create#checkouts-create.

Note: This change may break backward compatibility for applications using the current version of the SDK. Consider incrementing the major version number and providing migration instructions in the changelog.

Please review and let me know if any further changes are needed.

#46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants