#Shivam Kumar
1 messages · Page 1 of 1 (latest)
can you help me how i set hosted_verification_url and descriptor_code
then(({setupIntent, error}) => {
if (error) {
showMessage('error','Failed to add bank','{{url('account/set_message')}}');
window.location.reload();
}else if (setupIntent.next_action?.type === "verify_with_microdeposits") {
console.log(setupIntent.next_action);
stripe.verifyMicrodepositsForSetup(setupIntent.client_secret, {
descriptor_code: SMT86W,
amounts: [32, 45],
});
} else {
showMessage('success','Bank account added successfully.','{{url('account/set_message')}}');
// window.location.reload();
console.log("SetupIntent ID: " + setupIntent.id);
console.log("SetupIntent status: " + setupIntent.status);
}
});
});
It's set on the deposits sent to the bank: https://stripe.com/docs/api/payment_intents/verify_microdeposits#verify_microdeposits_payment_intent-descriptor_code
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The test values are here: https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#test-microdeposit-amounts-and-descriptor-codes
i got hosted_verification_url in next_action but how add descriptor_code for varification.
I don't understand the question. You don't set those values
You pass the test data I shared above to verifyMicrodepositsForSetup to simulate the verification scenarios
In a real live situation, that value would be included in the deposits made to the customer's bank
i not get any code in response what i type here.
You're in test mode, there's no actual deposits sent anywhere. You use the values from here: https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#test-microdeposit-amounts-and-descriptor-codes
SM11AA for example