質問 > フロント機能 > A8.netアフェリエイトタグ実装すると、複数注文をクレジットカード決済できない。 |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
FujiIro |
投稿日時: 2020/11/20 17:40
対応状況: −−−
|
新米 登録日: 2020/10/11 居住地: 投稿: 2 |
A8.netアフェリエイトタグ実装すると、複数注文をクレジットカード決済できない。 [EC-CUBE] EC-CUBE4.0.4
[レンタルサーバ] Heteml [OS] Linux [PHP] 7.3.17 [データベース] MySQL 5.6.23 [WEBサーバ] Apache [ブラウザ] Chrom 86.0.4240.193 [導入プラグインの有無] PGマルチペイメントサービス決済プラグイン [カスタマイズの有無] なし [現象] A8アフェリエイト実装するため下記を参照し、 https://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=flat&topic_id=19833&forum=10 https://umebius.com/eccube/show_order_information_in_shopping_complete_page/ https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=16499&forum=14&post_id=72937 https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=20705&forum=10&post_id=87962#forumpost87962 https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=22791&forum=10 最終的に下記を参考にしたのですが、 ■ECCUBE3で作ったショッピングサイトにA8アフェリエイトを導入してみた https://soulman.ne.jp/blog/2018/07/25/eccube3%E3%81%A7%E4%BD%9C%E3%81%A3%E3%81%9F%E3%82%B7%E3%83%A7%E3%83%83%E3%83%94%E3%83%B3%E3%82%B0%E3%82%B5%E3%82%A4%E3%83%88%E3%81%ABa8%E3%82%A2%E3%83%95%E3%82%A7%E3%83%AA%E3%82%A8%E3%82%A4%E3%83%88/ ■アフィリエイトタグ - 複数注文の際の値取得方法 https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=19950&forum=10&post_id=85221#forumpost85221 【変更点】 ■src/Eccube/Controller/ShoppingController.php /** * 購入完了画面を表示する. * * @Route("/shopping/complete", name="shopping_complete") * @Template("Shopping/complete.twig") */ public function complete(Request $request) { //略 $event = new EventArgs( [ 'orderId' => $orderId, 'Order' => $Order, ], $request ); $this->eventDispatcher->dispatch(EccubeEvents::FRONT_SHOPPING_COMPLETE_INITIALIZE, $event); //略 return [ 'orderId' => $orderId, 'Order' => $Order, 'hasNextCart' => $hasNextCart, ]; } ■twig <span id="a8sales"></span> <script src="//statics.a8.net/a8sales/a8sales.js"></script> <script> a8sales({ "pid": "xxxxxxxxxxxxxxxxxx", "order_number": "{{ orderId }}", "currency": "JPY", "items": [ {% for OrderItem in Order.MergedProductOrderItems %} { "code": "{{OrderItem.product_code}}", "price": {{OrderItem.price}}, "quantity": {{OrderItem.quantity}} } {% if loop.last == false %},{% endif %} {% endfor %} ], "total_price": {{Order.payment_total}} }); </script> 動作確認していたところ、下記の結果となりました。 ・単一種類商品購入 代引決済:OK、クレジットカード決済:OK ・複数種類商品購入 代引決済:OK、クレジットカード決済:NG(「購入エラー」) 複数種類商品購入してクレジットカード決済の3Dセキュア認証後に「購入エラー」となります。 Frontのログを見ると [注文処理] PaymentMethod::checkoutが指定したレスポンスを表示します. は出力されているので、 処理はされていると思われているのですが、 複数の商品を購入しクレジットカード決済を正常に行う解決方法が分かりません。 ご教示いただけますでしょうか。 何卒、よろしくお願い申し上げます。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» A8.netアフェリエイトタグ実装すると、複数注文をクレジットカード決済できない。 | FujiIro | 2020/11/20 17:40 |
Re: A8.netアフェリエイトタグ実装すると、複数注文をクレジットカード決済できない。 | 468 | 2020/11/20 20:36 |
Re: A8.netアフェリエイトタグ実装すると、複数注文をクレジットカード決済できない。 | FujiIro | 2020/11/29 15:30 |