ruskid / yii2-stripe

Yii2 Stripe wrapper extension
GNU General Public License v2.0
31 stars 18 forks source link

Stripe payment is not add stripe dashboard account #6

Closed sks1990 closed 9 years ago

sks1990 commented 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

ruskid commented 9 years ago

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