#Question About Sapphire API

1 messages · Page 1 of 1 (latest)

exotic dirge
#

Is Sapphire plugin api can be used only for callback? for example. I want to make API for callback payment gateway that my bot will receive and confirm the payment from the user that has been successfully pay the product that i sell, and i send the the product to the DM

light impBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

cloud hatch
#

Just use discord native

#

It's under your discord developer portal -> your application -> monetisation

exotic dirge
#

i have my own store with my local payment gateway

cloud hatch
#

different indeed but also much better if you ask me

exotic dirge
#

and the payment gateway is sending callback if the payment has been paid

cloud hatch
#

what you're asking is

split troutBOT
#

Fortunately, the charging one has been solved now that we've all standardized on mini-USB. Or is it micro-USB? Shit.

exotic dirge
# cloud hatch what you're asking is

What I mean is this, I want to integrate my discord bot with the payment gateway that I use. The payment gateway will send a callback to my bot API if the transaction is successful. My question is, can Sapphire API be used for Callback API like that?

cloud hatch
#

yes

#

it just uses node:http, the exact same thing that express, fastify, koa, etc use. Ergo, it can be used for it.

exotic dirge
cloud hatch
#

yes

exotic dirge
cloud hatch
#

the ones in the repo itself only really. No one has ever asked to implement their own middleware before so I have no idea if anyone has.

cloud hatch
exotic dirge
#

i tried to find it, but coulnd't find it

#

ah, okay thanks

#

thank you so much

exotic dirge