Closed sks1990 closed 9 years ago
Hello sir,
I have implemented stripe payment gateway using Yii2 framework and testing mode. I have pay, then its payment amount is not added in dashboard payment section for stripe account.
My code:- config/web.php 'stripe' => [ 'class' => 'ruskid\stripe\Stripe', 'publicKey' => "pk_test_Bx1lce1vC8mKHSWhOs3ZHLPm", 'privateKey' => "sk_test_rKGmtKHjriFLdugpPQKrboJn", ],
view file:-
echo ruskid\stripe\StripeCheckout::widget([ 'action' => Yii::$app->getUrlManager()->createUrl('/walet/payment/final'), 'name' => 'Demo test', 'description' =>'$ '. $model->amount, 'amount' => $model->amount*100, 'image' => '/128x128.png', ]);
Thanks && regards
Hi. I guess you don't perform the charge on the server side. Check out your action: '/walet/payment/final'
and here you have the example. https://stripe.com/docs/checkout/guides/php
Hello sir,
I have implemented stripe payment gateway using Yii2 framework and testing mode. I have pay, then its payment amount is not added in dashboard payment section for stripe account.
My code:-
config/web.php 'stripe' => [ 'class' => 'ruskid\stripe\Stripe', 'publicKey' => "pk_test_Bx1lce1vC8mKHSWhOs3ZHLPm", 'privateKey' => "sk_test_rKGmtKHjriFLdugpPQKrboJn", ],
view file:-
echo ruskid\stripe\StripeCheckout::widget([ 'action' => Yii::$app->getUrlManager()->createUrl('/walet/payment/final'), 'name' => 'Demo test', 'description' =>'$ '. $model->amount, 'amount' => $model->amount*100, 'image' => '/128x128.png', ]);
Thanks && regards