Comments (4)
Released: https://github.com/capacitor-community/stripe/releases/tag/v5.4.5
Docs: https://github.com/capacitor-community/stripe/tree/v5.4.5/packages/terminal#set-string-token
Please try this.
from stripe.
I see. It is certainly preferable to make the request on the web and pass it as a string, considering the granting of Headers, etc. But If StripeTerminal.Initialize
have that method, it is undesirable because a wrapper Class is required.
Currently considering:
StripeTerminal.addListener(TerminalEventsEnum.RequestedConnectionToken, async () => {
const token = await getToken(); // Users Method
StripeTerminal.setConnectionToken({token});
});
from stripe.
Thanks for the issue. Interesting suggestion, what problem do you hope to solve by this?
Do you want to change the API request destination in the middle of a request? Or do you want to do error handling?
from stripe.
I also would like this feature.
The ideal case would be that StripeTerminal.Initialize
has an option fetchConnectionToken: () => Promise<string>
where the returning string is the token. Then this token is used to initialize the StripeTerminal package.
This way we can delegate our own http-client layer so we can add headers, data, etc that our backend server endpoint may require.
from stripe.
Related Issues (20)
- We are getting error OR_BIBED_06 for Gpay even google_pay_is_testing set as true HOT 3
- setup intent/ subscription support for iOS/Android
- We've detected that one or more of the app bundles included in this release are using the following Play Billing Library versions AIDL
- paymentSheetFailed - But there's no more information HOT 2
- countryCode only US HOT 1
- @capacitor-community/stripe not working on web with Ionic/react HOT 5
- Google pay not available even in the react demo project HOT 7
- Feature Request: Split Methods for Apple/Google Pay to Separate Payment Method Retrieval from Confirmation HOT 1
- plugin dependency issue on androidx.emoji2:emoji2-views-helper:1.4.0 capacitor 5 HOT 7
- @capacitor-community/stripe-terminal error on initialize HOT 4
- @capacitor-community/stripe crashes the app on android 14 HOT 1
- Support paymentSummaryItems in PaymentFlow HOT 4
- Terminal package missing 'confirmPaymentIntent' method to process payment HOT 2
- TestFlight IOs HOT 4
- readCancelled on collecting second payment. HOT 5
- RequestedConnectionToken trigger twice HOT 2
- The client_secret provided does not match the client_secret associated with the PaymentIntent. HOT 3
- Get the paymentIntent result after successful transaction HOT 1
- Google Pay not working in ionic capacitor app HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe.