HI
I have configured the Payments.PayPalSmartPaymentButtons but when I go for the payment, I am receiving below error, Please guide
Error: Expected an order id to be passed
Thank you
Dev
var orderIdKey = _localizationService.GetResource("Plugins.Payments.PayPalSmartPaymentButtons.OrderId");
if (!processPaymentRequest.CustomValues.TryGetValue(orderIdKey, out var orderId) || string.IsNullOrEmpty(orderId?.ToString()))
throw new NopException("Failed to get the PayPal order ID");
Payments.PayPalSmartPaymentButtons error:
One or more errors occurred. ({"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"ec93d4777b33a","details":[{"field":"/payer/phone/phone_number/national_number","value":"+4475515999","location":"body","issue":"INVALID_PARAMETER_SYNTAX","description":"The value of a field does not conform to the expected format."}],"links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX","rel":"information_link","encType":"application/json"}]})