#niti-list_api
1 messages · Page 1 of 1 (latest)
You can list PaymentIntents: https://stripe.com/docs/api/payment_intents/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay
Actually I am not able to retireve authorization which is successful and deducted payment from topup
Are you receiving some error?
No not reciving any error with payment_intent retrieve list but my requirement is to get only successful payment record to get not all
Um each of the PaymentIntent object in the response should have a status. How about filtering them by status = 'succeeded`? https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But if some in pending state and can be captured any time need to include that also
so include both succeed and pending
okay
Can u tell me the best way to update sepnding limit of issuing card as and when I get an order and with the order amount
The spending limit of card is decided by the issuer bank of the customer. There is no way you, or Stripe can change it
And it varies from bank to bank, customer to customer
I am asking with reference to stripe issuing card where we can create virtual or physical card and adjust the spending limit of card
ah
yes
what's the specific question though?
https://stripe.com/docs/api/issuing/cards/update#update_issuing_card-spending_controls is how you update the spending limits.
yeah I was doing this yesterday but my issue is that if I update it as when receive any order with the order amount and if set to monthly limit
Then to get insuffiecient fund so how to set it according to keeping track of previous purchase + pending record for limit
it's just some code you write.
like orakaro mentioned, list previous payments, then you can add them up
so if the limit you want was $5, but you list previous payments and see that there was already $4 spent this month from summing up recent transactions, then you do 5+4 and set the limit to $9 instead.