#battbot-refund-java
1 messages · Page 1 of 1 (latest)
Example is this refund: re_3O2HnmJ93KfFVesb1v7dWuz8
{
"id": "re_3O2HnmJ93KfFVesb1v7dWuz8",
"object": "refund",
"amount": 1750,
"balance_transaction": "txn_3O2HnmJ93KfFVesb1KtvNmCM",
"charge": "ch_3O2HnmJ93KfFVesb1bdjEWML",
"created": 1697566981,
"currency": "cad",
"metadata": {
},
"payment_intent": "pi_3O2HnmJ93KfFVesb1kOcCWvM",
"payment_method_details": {
"interac_present": {
"brand": "mastercard",
"cardholder_name": " /",
"country": "CA",
"emv_auth_data": "8A023030",
"exp_month": 12,
"exp_year": 2024,
"fingerprint": "mH0gsmUGBWhBMrbO",
"funding": "debit",
"generated_card": null,
"last4": "7034",
"network": "interac",
"read_method": "contactless_emv",
"receipt": {
"account_type": "unknown",
"application_cryptogram": "72AD07D43D3168E0",
"application_preferred_name": "Interac",
"authorization_code": "142302 ",
"authorization_response_code": "3030",
"cardholder_verification_method": "approval",
"dedicated_file_name": "A00000027710100100000001",
"terminal_verification_results": "0080008000",
"transaction_status_information": "A000"
}
},
"type": "interac_present"
},
"reason": "requested_by_customer",
"receipt_number": null,
"source_transfer_reversal": null,
"status": "succeeded",
"transfer_reversal": null
}
We are trying to get the "payment_method_details.interac_present" information to print out a refund receipt
And this is a receipt you are generating yourself?
yes
we are a POS company using Stripe terminal for in-store transactions in Canada
we need to print receipt when there's a refund for Interac, since that requires card present for refunds and by law we have to print a receipt for it
And the details shown here are not sufficient?
it's sufficient
i'm saying the Java library doesn't offer this information under the Refund object
we can't retrieve this information from that Refund Class
Are you expanding the Charge object? https://stripe.com/docs/api/refunds/object#refund_object-charge
battbot-refund-java
@onyx kite unfortunately the property isn't properly documented so it's not in our SDKs. We'll work on a fix. In the meantime you can use https://github.com/stripe/stripe-java#properties to access those