Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Stripe commission when payment attempt is processed and response status is correct #566

Closed
xalec30 opened this issue Nov 4, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@xalec30
Copy link

xalec30 commented Nov 4, 2023

Is your feature request related to a problem? Please describe.
hi how are you, I am implementing a point of sale with the sdk, and I need to reduce the amount of calls to stripe to make the payment flow as fast as possible, and I need to get additional information regarding the payment made.

Describe the solution you'd like
be able to implement a response with additional information at the time of the payment process or in the case of implementing a manual capture, be able to obtain it in the capture.

@nazli-stripe
Copy link
Collaborator

hey @xalec30 what additional information do you need exactly? most of the calls to Stripe are managed by the SDK, what calls are you making and trying to avoid?

@xalec30
Copy link
Author

xalec30 commented Nov 6, 2023

hello, I need additional information corresponding to the charge (transaction information) made when the payment has been made successfully by card, at this moment it only returns basic information, (amount, description, payment attempt, status).

I try to avoid making a call to stripe on the server side just to get extended information of the payment attempt and speed up the payment flow.

@nazli-stripe nazli-stripe self-assigned this Nov 8, 2023
@nazli-stripe nazli-stripe added the enhancement New feature or request label Nov 8, 2023
@nazli-stripe
Copy link
Collaborator

@xalec30 can you give a list of exact fields as documented on the Stripe API docs? https://stripe.com/docs/api/payment_intents

@xalec30
Copy link
Author

xalec30 commented Dec 4, 2023

{ "id": "pi_1Gt0RG2eZvKYlo2CtxkQK2rm", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, "amount_details": { "tip": {} }, "amount_received": 0, "application": null, "application_fee_amount": null, "automatic_payment_methods": null, "canceled_at": null, "cancellation_reason": null, "capture_method": "automatic", "client_secret": "pi_1Gt0RG2eZvKYlo2CtxkQK2rm_secret_NwTJsElj83lkl9ZDjSIHPdtDB", "confirmation_method": "automatic", "created": 1591920486, "currency": "usd", "customer": null, "description": "Created by stripe.com/docs demo", "invoice": null, "last_payment_error": null, "latest_charge": null, "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, "payment_method": null, "payment_method_configuration_details": null, "payment_method_options": { "card": { "installments": null, "mandate_options": null, "network": null, "request_three_d_secure": "automatic" } }, "payment_method_types": [ "card" ], "processing": null, "receipt_email": null, "redaction": null, "review": null, "setup_future_usage": null, "shipping": null, "statement_descriptor": null, "statement_descriptor_suffix": null, "status": "requires_payment_method", "transfer_data": null, "transfer_group": null }

@nazli-stripe
Copy link
Collaborator

We added the missing fields RN SDK missing in this PR: #665 The list is limited to what is available by the Terminal iOS SDK [0] and RN SDK will continue to get updated as we add new fields to native SDKs.

[0] https://stripe.dev/stripe-terminal-ios/docs/Classes/SCPPaymentIntent.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants