LoginSignup
0
0

More than 3 years have passed since last update.

GMOペイメントゲートウェイで全角文字を送信したい

Last updated at Posted at 2020-09-14

罠にハマって苦しんだのでメモ

memo.php
// コンストラクタインジェクションでGuzzle Clientを設定とか、色々とな処理

        $params =  [
            // いろいろな設定が必要です。
            'gmoPaymentGatewaySomeItem1'     => '日本語ひらがな・カタカナを入れたい',
            'gmoPaymentGatewaySomeItem2'     => '日本語ひらがな・カタカナを入れたい',
        ];

        mb_convert_variables('Shift_JIS', 'UTF-8', $params);

        $response = $this->client->request(
            'POST',
            'https://gmo-payment.hogehoge/some/endpoint.extention',
            [
                'form_params' => $params,
            ]
        );


// 処理が続く
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0