yii2mod / yii2-cashier

Yii2 Cashier provides an interface to Stripe's subscription billing services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Payment Success Webhook

robov opened this issue · comments

commented

How can I add custom code when the payment / subscription payment has been successfully completed ?
I need to update some RBAC settings on successful completion

Hi, you can create your own controller for this purposes. And then override this code

'controllerMap' => [
        // Set path to your own controller with custom webhook
        'webhook' => 'yii2mod\cashier\controllers\WebhookController',
],