1195 LINE Pay does not support your version.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
1 year 3 weeks ago #350372

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.2.9
-- PHP version -- : 7.4.33

LINE Payをテスト環境にて試してますが、決済へ進むと

’1195 LINE Pay does not support your version.’

と表示されてキャンセルされてしまいます。

念の為、決済サーバIP管理へ利用サーバIPを入力して試しましたが、同じでした。

’バージョンに対応していません’と言うことはわかるので、現在、使えないプラグインと言うことなのでしょうか?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
1 year 3 weeks ago #350377

Hi,

It seems to be an issue with your LINE Pay merchant account.
Apparently, you need to accept the privacy policy:

Checkout機能を利用する場合は、ユーザーにプライバシーポリシーへの承認をもらう必要があります。必ずプライバシーポリシーへのリンクをご用意してください。設定されていない場合は、returnCode:1195(LINE Pay does not support your version.)が返されます。

pay.line.me/jp/developers/apis/onlineApis?locale=ja_JP
So you'll have to check your merchant account with LINE Pay.

That's a strange way to word an error message for privacy policy. And even weirder, the english version of that same documentation doesn't mention this error message even though the rest of the text is properly translated to english: developers.line.biz/en/docs/line-pay/checkout/#checkout-flow

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
1 year 3 weeks ago #350410

毎回、丁寧な回答、ありがとうございます。

returnCode:1195(LINE Pay does not support your version.)

を調べましたが、どうやらチェックアウトAPIはsandbox環境では使えないようですね。
engineering.linecorp.com/ja/blog/line-pay-sdk-python-v3/

要は自分で実装しろって意味合いで、私はそんなスキルはありません。

仕方なく本番環境にてLINE Checkoutを設定、サイトのLINE Pay設定もsandbox使用しないで決済を試したら、LINE PayのQRコードへ移動できることまでは確認しました。

けど本番環境だから、これ以上は進む勇気はありません。
今回はテスト環境で一連の確認ができないから諦めるかもしれません。

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
1 year 3 weeks ago #350431

Hi,

I think you're misunderstanding things.
The

本APIはSandbox環境では利用できません。

message there is for the shipping inquiry API.
This API allows LINE Pay to request the shipping fee from your website once the customer enters his address on LINE Pay.
That's what the example below that text presents too.
However, the LINE Pay plugin does not use this mechanism. The LINE Pay plugin directly provides the shipping fee and address to LINE Pay.

Also, the page pay.line.me/jp/developers/apis/onlineApis?locale=ja_JP says that this specific error message will appear if the privacy policy of the account is not accepted.
It could be explained by the fact you're using a sandbox account. But I'm not sure.
We did test the plugin with a sandbox account on our end and it worked fine but it was not with the japanese LINE Pay.

What you can do is to change the line:
if(!empty($order->cart->shipping_address->address_country->zone_code_2) && $order->cart->shipping_address->address_country->zone_code_2 == 'JP') {
to:
if(false) {
in the file plugins/hikashoppayment/linepay/linepay.php
This will make it not use the Checkout API, even for Japan and you should not have the problem.

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
1 year 3 weeks ago #350437

>I think you're misunderstanding things.

全くその通りで、返す言葉がありません。
実際、作業をする都度、勘違い、間違いを繰り返して理解できる様になるので...

指定された修正箇所を変更することでsandboxを利用してLINE PayのQRコードまで移動できました。
まだしっくり来ませんが、次の作業へ進めそうです。

ありがとうございました。

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum