Calling createError1 (Body has no required parameters (intent, purchase_units)) Request Body: {} Response: Status Code: 400 Name: INVALID_REQUEST Message: Request is not well-formed, syntactically incorrect, or violates schema. Debug_id: 1020916697cbf Details: 1: Field: /purchase_units Value: Location: body Issue: MISSING_REQUIRED_PARAMETER Description: A required field / parameter is missing. 2: Field: /intent Value: Location: body Issue: MISSING_REQUIRED_PARAMETER Description: A required field / parameter is missing. Links: 1: Href: https://developer.paypal.com/docs/api/orders/v2/#error-MISSING_REQUIRED_PARAMETER Rel: information_link EncType: application/json Calling createError2 (Body has invalid parameter value for intent) Request Body: { "intent": "INVALID", "purchase_units": [ { "amount": { "currency_code": "USD", "value": "100.00" } } ] } Response: Status Code: 400 Name: INVALID_REQUEST Message: Request is not well-formed, syntactically incorrect, or violates schema. Debug_id: 05dea985953ab Details: 1: Field: /intent Value: INVALID Location: body Issue: INVALID_PARAMETER_VALUE Description: The value of a field is invalid. Links: 1: Href: https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_VALUE Rel: information_link EncType: application/json