0
Laravelのpayone(https://www.payone.de/)APIのラッパーはありますか?私はパッケージを販売する会社は1つしか見つけられませんが、オープンソースはありません。助けていただければ幸いです。Laravel - Payone
Laravelのpayone(https://www.payone.de/)APIのラッパーはありますか?私はパッケージを販売する会社は1つしか見つけられませんが、オープンソースはありません。助けていただければ幸いです。Laravel - Payone
あなたはOmnipayを考慮する必要があります。http://omnipay.thephpleague.com/
ので:それは独立したゲートウェイがある
はPayOneためOmnipayプラグインがあります:https://github.com/academe/OmniPay-Payone
Omnipayを経由して商品を購入するためのコードは関係なく、ゲートウェイの同じほとんどです。 Payoneクラスの詳細をチェックして、送信する必要のあるその他の情報を確認する必要がありますが、いくつかのサンプルコードがあります。 Payoneゲートウェイは、アカウントの設定に応じて複数の異なる方法で動作します。
$gateway = Omnipay::create('Payone_ShopServer'); $card = new CreditCard(array( 'firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', // ... etc )); $transaction = $gateway->purchase(array( 'amount' => '10.00', 'currency' => 'USD', 'description' => 'This is a test purchase transaction.', 'card' => $card, )); $response = $transaction->send(); if ($response->isSuccessful()) { echo "Purchase transaction was successful!\n"; } // At this point you should get $response->getTransactionReference() // and store that or something similar.
彼らは公式のPHPパッケージhttps://github.com/ionas/PHP-SDKを持っています。それはLaravelでうまくいく –