Hi there,
I'm currently trying to save credit card for future payment from a terminal hardware using the PaymentIntent API (Ruby) and for some reason after the charge is processed successfully; contrary to what the documentation says, the
generated_card attribute on the Charge object is
null.Here is an example of request I sent:
Stripe::PaymentIntent.create(
amount: amount,
currency: currency,
capture_method: "manual",
on_behalf_of: acct_id,
statement_descriptor: statement_descrptor,
application_fee_amount: fee,
payment_method_type: ["card_present"],
setup_future_usage: "off_session",
customer: cust_id,
)
In the payment timeline on the Stripe dashboard I see the line that says: This payment successfully set up pm_xxxx for future off-session payments, and after the resulting charge is successful, I don't see any generated_card, and also when I check the customer payment methods, it does not show that the payment method was attached.
I don't know if I am missing anything, but I would really appreciate it if I can get some assistance here.
Thanks in anticipation.