Skip to content

INVALID_PARAMETER_SYNTAX #337

@JackZhangdaye

Description

@JackZhangdaye

PayPal Android SDK Version

2.0.0

Environment

Sandbox

Android Version & Device

android 15

PayPal dependencies

paypalWeb = { group = "com.paypal.android",name = "paypal-web-payments", version.ref = "paypalWeb" }
paypalCard = { group = "com.paypal.android",name = "card-payments", version.ref = "paypalCard" }

Describe the bug

{"error":{"code":400,"correlationId":"f353461aa7d11","errorDescription":"Request is not well-formed, syntactically incorrect, or violates schema. -\u003e [Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_STRING_LENGTH.\nError description: The value of a field is either too short or too long.]","detailMessage":"Error: 400 - Description: Request is not well-formed, syntactically incorrect, or violates schema. -\u003e [Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_STRING_LENGTH.\nError description: The value of a field is either too short or too long.]","stackTrace":[]}}

To reproduce

private void startPayCard(){
    CoreConfig coreConfig = new CoreConfig(AppUtils.clientID, Environment.SANDBOX);
    CardClient cardClient = new CardClient(PaymentInformationActivity.this,coreConfig);
    Card card = new Card("5110921167937625","08","2028","409");
    CardRequest cardRequest = new CardRequest("5C526682L5077981L", card, "com.earth.ffzo.paypal");
    cardClient.approveOrder(cardRequest, new CardApproveOrderCallback() {
        @Override
        public void onCardApproveOrderResult(@NonNull CardApproveOrderResult cardApproveOrderResult) {
            Log.i(TAG, "onCardApproveOrderResult: "+new Gson().toJson(cardApproveOrderResult));

//{"error":{"code":400,"correlationId":"f353461aa7d11","errorDescription":"Request is not well-formed, syntactically incorrect, or violates schema. -\u003e [Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_STRING_LENGTH.\nError description: The value of a field is either too short or too long.]","detailMessage":"Error: 400 - Description: Request is not well-formed, syntactically incorrect, or violates schema. -\u003e [Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_PARAMETER_SYNTAX.\nError description: The value of a field does not conform to the expected format., Issue: INVALID_STRING_LENGTH.\nError description: The value of a field is either too short or too long.]","stackTrace":[]}}

        }
    });
}

Expected behavior

I couldn't find the reason for the error. Please give me some guidance. Thank you

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions