You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pay_to_email | string <email> Email address of the registered user (merchant) to whom the payment is made. It is highly recommended to use merchant_code instead of pay_to_email.
You can use $customService->request($method, $relativePath, $payload); instead of $checkoutService->create($amount, $currency, $checkoutRef, $payToEmail);
Hello,
According to the SDK documentation (https://developer.sumup.com/docs/php-sdk/), the checkout needs creating with :
However, according to the rest API, using the
payToEmail
field is discouraged and the mandatorymerchant_code
field should be used instead when creating checkouts: see https://developer.sumup.com/rest-api/#tag/Checkouts/paths/~1checkouts/postLooking at the SDK source code, there's no way to use
merchant_code
. See https://github.com/sumup/sumup-ecom-php-sdk/blob/master/src/SumUp/Services/Checkouts.phpHow bad is it to use payToEmail? Shouldn't the sdk evolve to take into account the API specifications?
Thanks!
The text was updated successfully, but these errors were encountered: