-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Using the BTCPay API for Custom Integration #1356
Comments
@ndeet can you take a look at this one and if we fixed it? |
Hey @iBobik, will look into that, seems that information may be outdated. You can find a better example here https://docs.btcpayserver.org/Development/ecommerce-integration-guide/#modal-invoice-page-advanced-optional We don't have any dedicated Javascript dev around that's why there is no api library or for the modal, would be great if you or somebody could contribute that. That said, the functionality seems simple enough that it maybe is not needed. |
internal docs note: Checking the mentioned custom integration page it is outdated in several ways:
|
Btw, keep in mind e-commerce use cases with static website or limited backend capabilities, where it is handy to have API without authentication like this (sadly) deprecated one. See this small integration I wrote for Shoptet.cz, major e-commerce SaaS in Czechia: |
Yes you can do that when payment button is enabled, it is not deprecated, but it has problems. Users can modify sent parameters like price easily and e.g. lower the invoice amount and trick the chekout if you have no other checks in place. |
Described API is not correct on the "Using the BTCPay API for Custom Integration" page (
/CustomIntegration/
).But the callback receives objects like this:
Generally I would like to read much more complete docs about this frontend SDK. Ideally have it as a TypeScript package, so I does not need to handle loading by
<script>
and my code will know what types to expect.The text was updated successfully, but these errors were encountered: