나는 신용 카드를 사용하여 결제 내 laravel 응용 프로그램으로 설정에게 payum Paypal Rest. Credit card purchase이 모든 것이 설정되어 있지만 그것은처럼 나에게 예외를 부여 것 : 모델 Payum \ 페이팔 \ 나머지 \에 대한Laravel의 payum 및 페이팔 나머지
스토리지 Model \ PaymentDetails가 에 등록되지 않았습니다. 다음 모델의 저장 공간은 Payum \ Core \ Model \ Payment, Payum \ Core \ Model \ ArrayObject, Payum \ Core \ Model \ Payout입니다.
AppServiceProvider.php
//For payment gateway...
$this->app->resolving('payum.builder', function(\Payum\Core\PayumBuilder $payumBuilder) {
$payumBuilder
// this method registers filesystem storages, consider to change them to something more
// sophisticated, like eloquent storage
->addDefaultStorages()
//->getPayum();
->addGateway('paypal_ec', [
'factory' => 'paypal_express_checkout',
'username' => config('payment.paypalusername'),
'password' => config('payment.paypalpassword'),
'signature' => config('payment.paypalsignature'),
'sandbox' => true
])
->addGateway('paypalRest', [
'factory' => 'paypal_rest',
'client_id' => config('payment.paypalclientid'),
'client_secret' => config('payment.paypalsecret'),
'config_path' => '%kernel.root_dir%/config/sdk_config.ini'
]);
});
prepare.php 내가 모델 Payum\Paypal\Rest\Model\PaymentDetails
에 대한 스토리지를 등록해야
$storage = $this->getPayum()->getStorage('Payum\Paypal\Rest\Model\PaymentDetails');
$payment = $storage->create();
.
.
.
?