Git Product home page Git Product logo

expo-stripe-payments-with-supabase-functions's People

Contributors

j0 avatar thorwebdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

expo-stripe-payments-with-supabase-functions's Issues

Stripe types not imported via esm.sh

Importing the Stripe library results in the stripe client being typed as any.

I've tried as many combinations of esm.sh imports for Stripe as I can, including the one referenced in this example and the stripe client is always cast to any.

I realize this may be more of a Stripe issue than a Supabase issue, but given the helpfulness of the Supabase squad, I figured I'd ask here in case anyone has any good pointers on how to get a typed Stripe client in Supabase functions ๐Ÿ˜ƒ

image

Can't deploy function when using code as is

Bug report

Describe the bug

Tried implementing the code using the steps you provided, but the deploy step fails with the following message

Bundling payment-sheet Error: Error bundling function: exit status 1 file:///src/index.ts file:///_utils/stripe.ts file:///_utils/supabase.ts file:///_utils/db_types.ts error: Uncaught (in promise) Error: Relative import path "http" not prefixed with / or ./ or ../ const ret = new Error(getStringFromWasm0(arg0, arg1)); ^ at __wbg_new_8d2af00bc1e329ee (https://deno.land/x/[email protected]/eszip_wasm.generated.js:312:19) at <anonymous> (https://deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:79439) at <anonymous> (https://deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1388039) at <anonymous> (https://deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1862894) at __wbg_adapter_18 (https://deno.land/x/[email protected]/eszip_wasm.generated.js:146:6) at real (https://deno.land/x/[email protected]/eszip_wasm.generated.js:130:14)

To Reproduce

  1. clone repo to empty dir
  2. setup new project
  3. created the .env files and filled in my personal values
  4. login to my project
  5. link my project
  6. set my secrets
  7. listing secrets and delpoying the "hello" function works as expected
  8. run 'supabase functions deploy payment-sheet'

Expected behavior

function deploys instead of throwing an error

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: Wondows
  • Browser (if applies) Chrome - dont think it applies
  • Version of supabase-js: 2.0.0
  • Version of Node.js: 8.6.0

Additional context

Add any other context about the problem here.

Creates Stripe customers when user was deleted

I noticed that if a user is deleted (I ran supabase db reset), they can still successfully call the payment-sheet function, and a new Stripe customer will be created every time it's called

They will fail to save to Supabase because the user ID doesn't exist, but they will be created in Stripe

So you could end up with a bunch of Stripe customers that aren't connected to any user

Getting error response from functions when creating payment intent.

While I was creating Flutter sample app, I noticed an error on the function's end.

It seems like the call to supabase here is failing with the following error message

FetchError: error sending request for url ([https://ezkbryeecvynphnrwzhb.supabase.co/rest/v1/customers?select=*]()): error trying to connect: dns error: failed to lookup address information: Name or service not known

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.