#pkdiscgolf

1 messages · Page 1 of 1 (latest)

main citrusBOT
tacit storm
#

Thanks

shell mason
#

Hey there

#

So that Token looks to have been created on a different account

#

So seems like you mixed up your API keys between two accounts

tacit storm
#

OK that is probably true. I created a branch in my program to charge a different stripe account. Which does not seem to be working correctly.

shell mason
#

Yeah I'd double check on your keys and that should fix up the issue

tacit storm
#

Is there a way to identify which keys are being used? I know i have the keys typed in appropriately but the problem seems to be related to the branch i created which sends the money to a seperate account

shell mason
#

Not really a good way to do that, no. We don't expose keys in any way. You would mostly need to log in to your Dashboard and locate the associated account for the object or request

tacit storm
#

POST /v1/tokens
Status
200 OK
ID
req_KqByKufBy7Su8D
Time
6/1/23, 2:00:31 PM
IP address
73.242.65.80
API version
2020-08-27
Source
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Idempotency
Key — 1456d5eb-fb4d-4422-b50c-85174614dbe9

Origin
https://js.stripe.com/
Response body
{
"id": "tok_1NEGjbA8gx1vDzKsOrwahflL",
"object": "token",
"card": {
"id": "card_1NEGjbA8gx1vDzKsFMr34Hrj",
"object": "card",
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,
"address_line2": null,
"address_state": null,
"address_zip": "55106",
"address_zip_check": "unchecked",
"brand": "MasterCard",
"country": "US",
"cvc_check": "unchecked",
"dynamic_last4": null,
"exp_month": 8,
"exp_year": 2027,
"funding": "credit",
"last4": "0857",
"name": null,
"tokenization_method": null,
"wallet": null
},
"client_ip": "73.242.65.80",
"created": 1685646031,
"livemode": true,
"type": "card",
"used": false
}
Request POST body
{
"key": "pk_live_******************************************************************************",
"payment_user_agent": "stripe.js/0b0dd94be8; stripe-js-v3/0b0dd94be8",
"card": {
"number": "
",
"exp_month": "08",
"address_zip": "55106",
"cvc": "
",
"exp_year": "27"
},
"muid": "950a636a-e869-410d-9679-de6baf6613a153dd61",
"sid": "5369ec63-e2a5-4580-bd4e-cdcdc3c56bd771d179",
"guid": "73681090-6a91-4eb2-a07e-80e92b97ca5493fcca",
"time_on_page": "45009"
}

#

I am seeing the request in the dashboard which is weird. Does that indicate the one of the keys is correct? *(or possibly which is incorrect)

shell mason
#

Yeah one of the requests (the Token creation) is happening on one account, likely the one you are currently looking at. But then the Customer creation which also attaches that Token is happening on another account. Which is why you get the "resource_missing" error.

tacit storm
#

Does the token creation use the publishable key, secret key, or unknown?

shell mason
#

You are creating the Token client-side so it is using your Publishable key

tacit storm
#

OK so based on this info I seem to have an issue with my secret key not being sent with the transaction correctly

#

I found the 400 error transaction on my other account.

shell mason
#

Yep so sounds like a mismatch between secret key + publishable key

tacit storm
#

I do not know why "klarna_payments" capability has been changed. This isnot something i tried to do.

shell mason
#

Would need the Event ID to be able to take a look

tacit storm
#

{
"object": {
"id": "klarna_payments",
"object": "capability",

shell mason
#

Can you copy paste those IDs

tacit storm
#

evt_1NEH3IA8gx1vDzKs1xxhfaOo

shell mason
#

Thanks

tacit storm
#

evt_1NEH1NA8gx1vDzKsHGUUKQ1L

shell mason
#

Oh yeah this was an internal migration that we did as Klarna recently became supported in more places and for more accounts. You can ignore it if you don't have any intention of using Klarna.

tacit storm
#

Ok, thanks

#

I have my issue figured out

#

Thanks for the help

shell mason
#

Glad you got it working!