Stripe passing Metadata from Create-Checkout-Session to Webhook

Advertisements Im trying to pass metadata (userUid) to the Webhook so it saves it correctly in my Firebase. the Checkout Session receives the userUid correctl (seen in the console.log) but somehow the metadata is undefined in the Webhook. Here is the cretae-Checkout-Session code: app.post(‘/create-checkout-session’, async (req, res) => { const prices = await stripe.prices.list({ lookup_keys:… Read More Stripe passing Metadata from Create-Checkout-Session to Webhook

Stripe – what subscription do I need to allow users to pay other users products like ebay

Advertisements I’m trying to research stripe, where i would like to create a site like ebay so the system can allow users to register and sell there goods and allow other users to buy those goods and finally pay using a payment gate way. What service would I need to use for me to achieve… Read More Stripe – what subscription do I need to allow users to pay other users products like ebay

Mode in Stripe API

Advertisements What is the Mode parameter in Stripe API? When I test Stripe Api in laravel, it says: Error sending request to Stripe: (Status 400) (Request req_XKxpoKv6C0eFDm) You must provide mode when using prices. Stripe\Exception\InvalidRequestException: You must provide mode when using prices. Here is my code: $session = Session::create([ ‘payment_method_types’ => [‘card’], ‘line_items’ => [… Read More Mode in Stripe API

What is the correct Stripe resource to supply in the metadata when updating a subscription cli callback request?

Advertisements I can’t figure out how to make a request to using the Stripe API cli callback tool* to include my required metadata in my update subscription request. I have this: stripe trigger customer.subscription.updated –add customer_subscription:metadata[‘Environment’]=dev I suspect the issue is in the customer_subscription resource but I’ve tried every combination and have had no success.… Read More What is the correct Stripe resource to supply in the metadata when updating a subscription cli callback request?

Stripe – Get Prices and their Payment Links

Advertisements I am trying to build a subscription page like like I have a GetPrices method to get my Stripe prices and have included the Price Product information too. public StripeList<Price> GetPrices() { StripeConfiguration.ApiKey = Options.SecretKey; var service = new PriceService(); var priceListOption = new PriceListOptions { Limit = 3, Active = true }; priceListOption.AddExpand("data.product");… Read More Stripe – Get Prices and their Payment Links

I don't have session.payment_intent in stripe

Advertisements I had implemeted stripe wallet in next.js and I created a test account for developing. **this is my server_side codes : ** checkout_session.js const stripe = require("stripe")( "sk_test_xxxxx" ); export default async function handler(req, res) { if (req.method === "POST") { try { // Create Checkout Sessions from body params. const session = await… Read More I don't have session.payment_intent in stripe

php stripe checkout showing unexpected error

Advertisements I am trying to develop a custom-flow stripe payment system. For some reason, its showing ‘an unexpected error occurred’. I have checked the console and found this statement – ‘https://api.stripe.com/v1/payment_intents/pi_3NYewMIDgqJGqr0P0FchFIQW/confirm 400’ Please note, I am not requesting anyone to write me the code, if possible just guide me where I am getting wrong and… Read More php stripe checkout showing unexpected error

Using stripe in Flutter Web! How to transfer customer_email?

Advertisements I want to create a subscription page in flutter, with stripe. It works fine, beside I cannot transfer the customer_email to stripe. That is my code, I added the parameter from the stripe api, as you can see below. But the program crashes… The Stripe Api has this option. @JS() library stripe; import ‘package:flutter/material.dart’;… Read More Using stripe in Flutter Web! How to transfer customer_email?