Laravel Cashier Reuse Payment Intent - laravel

I just upgraded my stripe integration in my Laravel application that handles subscriptions using Cashier 11.0 to get along to the new SCA rules.
All of this is working fine. :)
But when are subscriber is shown the cashier.payment route, how do i handle the situation where a user clicks on the button "GO Back"
I use this code to show the confirmation:
redirect()->route('cashier.payment',[$exception->payment->id, 'redirect' => route('settings.user.profile')]);
When the user click on the button "Go Back" I end up with a subscription with the status of "Incomplete"
How do i add a button, that the user can click on to confirm the payment on a later date?
Please help.

Related

Messageback like feature of Adaptive Card in Slack BlockKit

I am trying to implement messageBack feature of Adaptive Card in Slack Builder Kit where on clicking of a button I can show a default response of the bot before the response comes from the API. This could be implemented in Adaptive Card using messageBack. Is there a way to do similar thing in Slack Builder Kit template.
On clicking the button, I want to show 'Thank you for clicking' and then I want to show the response which comes from the API.
When the button is clicked, you can update the message that you sent with "Thank you for clicking" using the chat.update method. After that, you could update it once more to show the response from the API or just send another message via chat.postMessage.
Alternatively, you could send an ephemeral message with the text "Thank you for clicking" using the chat.postEphemeral method, which would only show up for the user that clicked the button and then send a regular message with the API contents in a later message.

Navigate User from slack channel to app home tab

I am working on a slack app that can be installed in any channel. It is possible or is there any slack method that allows you to open the slack app home tab from the channel. I mean a method that can navigate the user from the channel to the slack app home-tab
Send a slack message to users with #appname. For example "Click here to open the #ACME Dashboard" (assuming "ACME Dashboard" is the name of your app). #ACME Dashboard will turn into a clickable link that jumps to the app home page. It'll also add the app for users that haven't already added the app.
At least, this worked for me in limited testing with myself and one other person, so I hope it works for you. I haven't tried to figure it out, but I'm sure there's a way to send the '#app name' as part of a message from the API.

Laravel Cashier (Stripe) subscribing using the existing customer with token

I am developing a Laravel application that involves subscription payment. Now I am struggling with subscribing the user with token but using the existing customer. This is the scenario. In my application, user can update their payment/ billing information (basically card). When they update the payment info, they are just adding the card information. Then later, user can make payment or subscribe to whatever they want.
First user will add they payment method or card information. So I create the customer like this.
$user->createAsStripeCustomer($token, array_merge($options, [
'email' => 'email address',
]));
So the above method will create the stripe customer for the user along with the card. Then tomorrow, user might want to subscribe to a channel. Laravel Cashier provide the following method to subscribe.
$user->newSubscription('subscription-name', 'my-plan')->create($token);
Then issue with the above code is that, I have to pass the token again. If I have to pass the token, again, I will have to generate the token again in the Javascript. If I have to generate the token again in the javascript, I will have to ask the user to enter the card information again to get token. So what can I do to get user to subscribe using the existing customer info? How can I do that?
One method is whenever you create a stripe customer, add the user to a free subscription plan so that he doesn't have to pay anything until he subscribes. When the user starts subscription we can simply change the subscription plan to the desired plan using the following method:
$user->subscription('main')
->skipTrial()
->swap('provider-plan-id');
Another method is whenever we create a stripe customer, ask the user to select a subscription plan and put him on the trial period until he subscribes.

Publish bot - Bing Chanel "Submit for Review" button is disabled

I am trying to publish a chatbot to Bing channel. I have filled in all the mandatory information, but the Submit for Review button is still disabled, any tips why? Thanks.
For channel configuration issues, the best way is to submit your problem on BotBuilder GitHub and include your bot name, bot handle and app ID as you registered in the Bot Developer Portal
I was able to repro your issue. It seems that the "Tags for your Bot" field is also mandatory, even though is not marked as it in the UI.
Try filling that field and you will see the button will become enabled.

Virtuemart email notification not working

we re using Virtuemart2 with joomla for our eCommerce website,if we are using the standard payment in virtue mart, both of the vendor and shopper gets their email notification properly.But when we using MIGS payment we didn't get the email notification.
Thanks,
This problem normally occurs, when the setting for the order status after the payment is not set properly inside of the payment configuration.
Inside of the payment configuration, the standard statusses are "pending", "confirmed by shopper" and "confirmed" and so on. If it is a payment system like Paypal, where the payment is finalized right away, the returning status should be "confirmed".
In VirtueMart configuration there is a tab where you can select the statusses at which to send a mail. I think, the tab was called "Checkout". In VM 3.0.14 and above, the tab is called "Emails". Here you have to adjust the settings according to the status after payment(s).
Please keep you VM at the latest version 2.6.22, and Joomla at 2.5.28 including the fix from 21st Dec 2015 to address all security issues.

Resources