Stripe Payment API with Customer and Card ID

Stripe Payment API with Customer and Card ID

Content Index :

Stripe Payment API with Customer and Card ID
Tag : development , By : Steve
Date : November 24 2020, 03:01 PM

This might help you To create a charge using a saved card, simply pass the customer ID ("cus_...") in the customer parameter in your charge creation request.
If the customer has more than one saved card and you want to charge a non-default card, you can also pass the card ID ("card_...") in the source parameter.

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Stripe payment error (You must supply either a card or a customer id) using Laravel

Tag : php , By : Robby
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Edit 2: you have used secrete_key in Stripe::setApiKey(Config::get('stripe.secrete_key')) - should it be secret_key ?
Edit 1: the only difference between your billing.js and laracasts' is a space between the two closing brackets at the end of Stripe.createToken:
Stripe.createToken(this.form, $.proxy(this.stripeResponseHandler, this) );
public function createStripeCustomer($email, $token)
    $key = Config::get('stripe.secret');


    $customer = Stripe::customers()->create([
        'card' => $token,
        'email' => $email,
        'description' => 'desc'
    // error checking

    return $customer['id'];
return Stripe_Charge::create(
            'amount' => 1000, // $10
            'currency' => 'usd',
            'customer' => $customer['id'],
            'description' => $data['email'],

Stripe Payment: Getting Error as Customer cus_***** does not have a linked card with ID tok_*****

Tag : javascript , By : Pierre LeBoo
Date : March 29 2020, 07:55 AM
wish of those help There are three different ways to create a charge:

Where I add card detail to receive payment of subscribe user (customer) in Stripe

Tag : development , By : smbrant
Date : March 29 2020, 07:55 AM
I hope this helps . Subscriptions use the default payment source. So when you Create a Customer, you just need to provide a source-argument.

Stripe Payment: Customer cus_***** does not have a linked card with ID card_*****

Tag : android , By : user121405
Date : March 29 2020, 07:55 AM
like below fixes the issue If you pass paymentSourceId with paymentSourceCustomerId, it is required to have that card linked with that customedId.
You have two option to link a card with customer:
curl https://api.stripe.com/v1/customers \
   -u sk_test_BQokikJOvBiI2HlWgH4olfQ2: \
   -d description="Customer for emily.harris@example.com" \
   -d source=token
curl https://api.stripe.com/v1/customers/cus_D1p9ZtnrPS4XAR/sources \ 
-u sk_test_BQokikJOvBiI2HlWgH4olfQ2: \   
-d source=token

Send payment in multiple destination account by using customer card id in stripe

Tag : laravel , By : Vasiliy
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • How to add CVS directories recursively
  • Web App Beta
  • Virtual machine supporting multiple displays
  • LINQ to SQL strings to enums
  • How do I configure eclipse (zend studio 6) to hint and code complete several languages?
  • Recommended Fonts for Programming?
  • Automating VMWare or VirtualPC
  • How do I use more than one OpenID?
  • Domain Specific Language resources
  • Vista or XP for Dev Machine
  • Where can I get the Windows Workflow "wca.exe" application?
  • How to learn ADO.NET
  • What is a good barebones CMS or framework?
  • What's the Developer Express equivalent of System.Windows.Forms.LinkButton?
  • Is it acceptable for invalid XHTML?
  • Anyone soloing using fogbugz?
  • Using MBUnit in TeamCity
  • How to setup a crontab to execute at specific time
  • Linking two Office documents
  • How can I detect if a browser is blocking a popup?
  • Apply filter to t-foreach
  • Lotus Notes convert formula to agent
  • Problem with configuration of odoo for working with pycharm
  • Unexpected number of arguments when calling EM_JS function
  • What does the function state_fidelity() do in Qiskit?
  • Azure function with IoT Hub trigger get send device
  • Cluster similar words using word2vec
  • Add elements into an array then find distinct,
  • Angular8 - error TS2304: Cannot find name
  • Manually polling streams in future implementation
  • How do you perform receipt validation for Android on Xamarin Forms
  • What is the rule behind instruction count in Intel PIN?
  • How to draw some text when click a button in wxWidgets?
  • Restrict entity types in Spacy NER
  • How to animate CN1 Slider progress on load
  • Issue with bwa mem process not running on all output files from previous process
  • Delete videos from playlist using YouTube API
  • How to restart the Hyperledger Composer Playground locally
  • How to configure email alerts in Zabbix Server?
  • Simulator is not working for smart home action with all configured session
  • How parse data using join on Objection.js
  • Assign an array to a property in a Chapel Class
  • Netlogo: How can I obtain the accumulate value in Netlogo?
  • How to populate datasource for listview using api response in react native?
  • Why does gmail API when using history.list method send message ids without the field what action has been preformed on t
  • How to run an append query in ms access vba as part of a transaction
  • Wrong dates shown in Jekyll-based blog
  • How to concatenate two document lists in a webMethods flow service?
  • How to properly set up a site map addition in a customization project
  • IBM Content Collector error calling external Web Service
  • Is (0*1*)* equal to (0 | 1)*?
  • How do I configure phpMyAdmin to start with a blank sql query from the SQL tab?
  • "Objects are not valid as a React child" Redux error when conditionally connecting a component?
  • Displacy results are not showing
  • Strapi / Graphql. What am i doing wrong?
  • How to add Search bar for django template?
  • lookup in presto using single column against a range in lookup table
  • How can you stop videos being stolen on website?
  • Can't code substitution happen in Hybrid Flow?
  • Removed widget remains on parent
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com