Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #549
    dan
    Participant

    Have an error on CAPTURE method on PayPal

    “error” => array:5 [▼
    “name” => “INVALID_REQUEST”
    “message” => “Request is not well-formed, syntactically incorrect, or violates schema.”
    “debug_id” => “”
    “details” => array:1 [▼
    0 => array:5 [▼
    “field” => “”
    “value” => ” xo ▶”
    “location” => “body”
    “issue” => “INVALID_STRING_LENGTH”
    “description” => “The value of a field is either too short or too long.”
    ]
    ]
    “links” => array:1 [▼
    0 => array:3 [▼
    “href” => “https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH”
    “rel” => “information_link”
    “encType” => “application/json”
    ]
    ]
    ]

    #550

    Kindly check on description. On PayPal developer docs, this are the rules for description field

    description string [1..127] characters

    “The purchase description. The maximum length of the character is dependent on the type of characters used. The character length is specified assuming a US ASCII character. Depending on type of character; (e.g. accented character, Japanese characters) the number of characters that that can be specified as input might not equal the permissible max length.”

    That means if you set a value in the description field it cannot be zero or exceed 127 characters otherwise it will throw that kind of error

    #551
    dan
    Participant

    that solved the problem.. mine exceeds 127 characters

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.