#ankit_638-endpoint
1 messages · Page 1 of 1 (latest)
The guide mentions
Next, fetch the SetupIntent client secret, Ephemeral Key secret, Customer ID, and publishable key from the endpoint you created in the previous step.
The previous step where you add an endpoint is : https://stripe.com/docs/payments/save-and-reuse?platform=android&ui=payment-sheet#add-server-endpoint
In essence, you should make a post request to that particular endpoint.
have you tried following the commented instructions?
import com.stripe.android.PaymentConfiguration;
// Add the following lines to build.gradle to use this example's networking library:
// implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
// implementation 'com.github.kittinunf.fuel:fuel-json:2.3.1'
import com.github.kittinunf.fuel.httpPost;
import com.github.kittinunf.fuel.json.responseJson;
what should be endpoint here ?
that would be your backend server which you setup in the previous step - i can't give you the exact url since that would depend on how you setup your server