zendesk / sunshine-conversations-ruby

Smooch API Library for Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

does the client support payment over messaging?

angelacode opened this issue · comments

I looks like from the documentation that smooch supports payments via stripe? Which part of the documentation for the ruby client describes this?

I am having difficulty finding that, thanks@!

Once you have enabled Stripe on your app from the Smooch marketplace, you can use the use the post_message method to send a message with an action of type buy.

More information about buy actions: https://docs.smooch.io/rest/#buy

I can use the "markdown" to create the payment button as well?

https://docs.smooch.io/guide/sending-images-and-buttons-shorthand/

Yes if you include the payment button syntax in your message text it will be parsed into a buy action

Hi, so it looks like it takes it to a smooch.io page....is there a way to use a custom domain for that (I can create a redirect page rule in Cloudflare if I can change the base URL)...I don't think customers would continue if they go from my app to being asked permission to go to a smooch.io URL....

The altnerative looks like creating my own button to my own stripe page...?

if they go from my app to being asked permission to go to a smooch.io URL

Can you elaborate on what kind of "app" you're talking about? Our native SDKs (iOS, Android, and Web) all have built-in support for payment buttons, it shouldn't take you to any external URL. Here's what it looks like on iOS, taken from https://docs.smooch.io/guide/stripe-payments/:

For other integrations, it would indeed take you to a smooch.io URL though, we don't have an option to customize the location of that page. The alternative would be to not use our Stripe integration, and instead send a link action with a URL to whatever payment page you choose

This is all within Messenger going to a hosted Stripe checkout.....looks like I would need to use the "link" action