logo
down
shadow

Parse.com Stripe: Creating a charge that is not captured


Parse.com Stripe: Creating a charge that is not captured

By : Orhan Sezgin
Date : November 22 2020, 10:40 AM
Hope this helps Well, after taking a break from my hours of staring at the screen, I certainly feel like a doofus! The parameter I was using was captured, where the correct parameter should be capture. I was able to fix my issue by simply removing the "d" from the parameter name while creating the charge.
Whoops! I would still be open to advice on http requests via comments, but I will test those on my own and post a separate thread if I run into issues there as that issue is tangential to this one and thus off-topic.
code :
//kStripePrivateKey is your stripe private key
//Must pass in chargeID = stripe charge id and 
    //orderCostInCents = capture amount in cents as parameters
var captureURL  = "https://"+ kStripePrivateKey +
            ":@api.stripe.com/v1/charges/"+
            request.params.chargeID+
            "/capture?amount="+request.params.orderCostInCents;

Parse.Cloud.httpRequest({
    url: captureURL,
    method: 'POST',
    success: function(httpResponse) {
        // Handle any success actions here
        response.success(httpResponse);
    }, error: function(httpResponse) {
        response.error(httpResponse);
    }
});


Share : facebook icon twitter icon
How to get charge id after creating a subscription using Stripe?

How to get charge id after creating a subscription using Stripe?


By : Kevin85
Date : March 29 2020, 07:55 AM
With these it helps This is exactly what Stripe's webhooks are for. After creating a customer with an initial subscription, you'll get six webhook notifications:
customer.created, with the customer data (which you already have if you're saving what the API returns) charge.succeeded (or charge.failed), which contains the initial charge data you're looking for invoice.created, which is the associated invoice invoice.payment_succeeded (or invoice.payment_failed), also telling you the status of the charge customer.card.created, with the details of the new card customer.subscription.created, with the details of the customer's subscription.
Error when creating charge with Parse.com Stripe API

Error when creating charge with Parse.com Stripe API


By : Alagarsamy
Date : March 29 2020, 07:55 AM
Does that help @user3707419 I get the same error when trying to add a customer. Comment out that line and instead add the following:
code :
 card: stripeToken //this is the token you generated
parse jssdk 1.5.0
Stripe and Parse Cloud Code charge credit card

Stripe and Parse Cloud Code charge credit card


By : user404266
Date : March 29 2020, 07:55 AM
I wish this help you Looks like your code is right. I was running into the same issue and reported it to Facebook.
Next time, I recommend you post more of your code as formatted text, as you will get more search engine hits :)
Creating a Stripe Charge with JavaScript

Creating a Stripe Charge with JavaScript


By : Furkan Süleyman ÇINA
Date : March 29 2020, 07:55 AM
I wish did fix the issue. You can't make a charge within the JS itself. Charging a customer with Stripe is a two-step process.
Step 1: You collect a customer's credit card information with Checkout, it is then sent to Stripe. You get back a token. That's what you're doing in your code above.
Stripe SCA: Charge succeeded but not captured. Why does it lead to confusion for my customers?

Stripe SCA: Charge succeeded but not captured. Why does it lead to confusion for my customers?


By : user3150228
Date : March 29 2020, 07:55 AM
Any of those help
some issuers do not distinguish between authorizations and captured
Related Posts Related Posts :
  • Is there a way to tell Serde to use a struct field as a map's key?
  • ld:framework not found sfml
  • nice, go-idiomatic way of using a shared map
  • IzPack ChmodInstallerListener.jar
  • Breaking down tasks of user stories between developer and QA
  • Dropwizard service not starting properly
  • How to override devise invitable actions
  • Coded UI. How can I change TimeOut in Find() method
  • Why when I click on the update button error TypeError: r is undefined happen?
  • Visio Component Diagram - Required Interface
  • Lucene: fast(er) to get docs in bulk?
  • can I use windows 8 font (Segoe UI)for my web app?
  • Using Flask Session in Gevent Socket-IO
  • Difference between recommended and suggested cookbooks
  • Dynamic Forms (Formsets) in Flask / WTForms?
  • Image Servlet doesn't want to show image in browser (FireFox, IE..) but in Eclipse browser works?
  • Logback - how to get each logger logging to a separate log file?
  • In Crystal Reports, how do I keep a row from printing if the value is null?
  • iOS 6 Audio multi-route - use external microphone AND internal speaker simultaneously
  • Adding Comments in JasperReports template (jrxml)
  • Servicestack mini profiler
  • Logging with Castle Windsor, the Logging Facility and log4net
  • Subscribe for instances list update in GCE autoscaled group
  • Generating a unique QR code for each Order in Woocommerce
  • libvirtError: internal error Cannot find suitable CPU model for given data
  • CKEditor changing content automatically
  • Pass double pointer in a struct to CUDA
  • Apache Camel for TCP based streamer
  • How to convert old CDC mainframe PRUs to bytes?
  • compilation on Blue Gene Q - ELF header
  • Set border of a jasper subreport having a title and a detail band
  • How to highlight tpl file?
  • cygwin: Starting cron as a service (access denied)
  • Can't access to the object after Importing from SVG
  • Hindi Font with DOMPDF in Codeigniter
  • XMLHttpRequest in a ContentScript from the Firefox SDK (Cross-Domain)
  • Adding javascript file or block to front page only drupal-7
  • No Emulator lists to deploy windows phone app
  • Redirection from component to view in joomla 2.5.8
  • What are possible solution for periodic folder sync between machines on linux?
  • Is there any status of review comments in gerrit
  • How can I permanently customize window size/buffer size of Command Prompt in Windows 7?
  • how to login in magento admin using coding
  • How to get all courses on moodle?
  • Null Validation in Excel Column
  • How can I run scenario of single Feature file in specflow
  • How to remove this ' + ' SIGN from visual studio 2017 project
  • applying window function to big data set (how to optimize?)
  • Awesome wm keyup and keydown events
  • Uploading multiple files in a single request using python requests module
  • Woocommerce override grouped product title
  • Update Quantity on Hand IPP
  • Property graph (Neo4j) design: Single node with multiple relations or new nodes for each event occurence?
  • What does badref mean?
  • Unable to 'vagrant ssh' after successful provisioning
  • Where to add css files using the Yeoman workflow
  • Get request method in Silex middleware
  • How to write into XML file in Haxe?
  • What is a Kernel Overhead?
  • dart language: Map<Object,String> how to add new pair?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org