#Andsis

1 messages · Page 1 of 1 (latest)

lean minnowBOT
barren crane
#

FYI my code is:
try {
const paymentIntent = await stripe.paymentIntents.retrieve(body.paymentIntentId);
console.log("got the payment intent", paymentIntent);
const terminal = await stripe.terminal.readers.retrieve(
body.terminalId
);
console.log("got the terminal",terminal);

const result = await terminal.collectRefundPaymentMethod(
  paymentIntent.latest_charge,
  body.amount,
  "cad"
);
timid sigil
barren crane
#

yes I see I need to add terminal_interac_refunds_beta=v1 to the header

#

Okay so don't use the SDK for that call then

timid sigil
#

Yeah, that would be my suggestion for now.

barren crane
#

Okay great thanks thats good to know! thank you!

timid sigil
#

Happy to help!