#morepow - Roles

1 messages ยท Page 1 of 1 (latest)

split vale
#

Hello! Can you reply in this thread please? ๐Ÿ™‚

agile gate
#

yes

#

so yea I see the coupons in 'test' mode

split vale
#

It sounds like you're using a test mode key to make the Coupons.

agile gate
#

but when I swtich to the live key

#

they dont show up in the live UI

split vale
#

Are you sure the live key you're using belongs to the account you're logged in to in the Dashboard?

agile gate
#

let me double check

split vale
#

You can use the key to make a GET /v1/accounts request and see the account ID and other details for the account it belongs to.

agile gate
#

yea, one sec

#

seems to be coming back fine

#

I'm not the account owner, I was just assigned a 'developer' role

split vale
agile gate
#

#<Stripe::Coupon:0xbb8 id=MEiEnDmO> JSON: {
"id": "MEiEnDmO",
"object": "coupon",
"amount_off": null,
"created": 1634679659,
"currency": null,
"duration": "once",
"duration_in_months": null,
"livemode": false,
"max_redemptions": 100000,
"metadata": {},
"name": "NFTTaxGuideCouponLive",
"percent_off": 100,
"percent_off_precise": 100.0,
"redeem_by": null,
"times_redeemed": 0,
"valid": true
}

split vale
#

Sorry, I need the request ID, which starts with req_

agile gate
#

hm is there a way to get that from the Ruby client?

split vale
agile gate
#

weird I'm not seeing any of my requests logged

#

here we go: req_eKZzypH4bVBRl1

split vale
#

Let me have a look...

agile gate
#

ty

split vale
#

So this is a test mode request made with a test mode key, but I thought you were having issues with a live mode request?

agile gate
#

oh really? I thought I swtiched to use the live key

#

oh okay, problem was me ๐Ÿ™‚

#

thanks for the help!

split vale
#

No problem!

#

Glad it was an easy fix!

agile gate
#

I'm seeing it now with the correct key

#

thought I was going crazy lol

#

thanks for the tip with the request_id, I'll make sure I collect that ahead of time if I have issues in the future