#vaxcin

1 messages · Page 1 of 1 (latest)

restive cedarBOT
naive swan
umbral wolf
#

Oh no

#

You can't retrieve an id by an alias

naive swan
#

Oh ok maybe i am using the wrong wording?

umbral wolf
#

The 0341 card also doesn't have an alias

naive swan
#

Right ok wanted to confirm that

#

What would be the best way to change an existing test customer's payment method to the 0341 card?

I tried creating an automated test to create a new payment method with card numbers but do not want to 'enable raw card data APIs in test mode'

umbral wolf
#

You could add via the dashboard

#

On their customer page

#

change an existing test customer's payment method
What do you mean by this

#

Is it the default for a subscription

naive swan
#

i'm trying to test for a past due scenario

#

So first month has a valid card and then before the 2nd invoice a card that declines when charged is attached

#

Yeah i see i can add via dashboard but wondering how to do it via api for automation. But also without enabling raw card data in test mode if possible

#

Yes trying to change the subscription's default payment method

naive swan
#

understood

umbral wolf
#

Since this is just a one off test, just go through your test flow to add the card and set as default

naive swan
#

^Thru the dashboard right?

#

Sorry its not particularly a one off test I'm writing an event based process for every time a subscription becomes past_due. Expecting loads coming through this event

umbral wolf
#

No I meant your payment integration

#

But if it's not 1-off then that's not feasible

#

But you can't automate this via api without also enabling raw card details

naive swan
#

Yep gotcha ok that's what i wanted to confirm ty ty