■(PayPal) status code: 500
PayPalボタンをWEBに設置した際、ログインをして支払いをすると以下のようなエラーが出た。
Error: Api: /smart/api/order/xxx/capture returned status code: 500 (Corr ID: xxxxxxxx)
at https://www.paypal.com/smart/buttons?style.label=paypal&style.layout=vertical&style.color=gold&style.shape=rect&style.tagline=false&components.0=buttons&locale.country=JP&locale.lang=ja&sdkMeta=
エラーコードが500なので、公式のリファレンスで調べると
https://developer.paypal.com/docs/api/reference/api-responses/
■解決策
単純に、支払っているPayPalのアカウントに紐づけられたクレジットカードが使えなくなっていた。
意外に当事者は気づかないので、少しハマった。
少しでも皆さんの開発が効率的になればと思います。
My Twitter:
https://twitter.com/funny_man_daa