Hi
We went live with Stripe connect a couple of days ago, but all payments to any merchant account fail. Any help would be greatly appreciated.
We use Exceptional to track exceptions, it is reporting
Payments::TeamMemberPaymentsController#make_payment1
(Stripe::InvalidRequestError) "Invalid token id:
tok_xxxxxx. The publishable key used to create this
token is from a different account."
/data/teamer/shared/bundle/ruby/1.8/gems/stripe-1.8.8/lib/stripe.rb:221:in `handle_api_error'
/data/teamer/shared/bundle/ruby/1.8/gems/stripe-1.8.8/lib/stripe.rb:115:in `request'
/data/teamer/shared/bundle/ruby/1.8/gems/stripe-1.8.8/lib/stripe/api_operations/create.rb:6:in `create'
/data/teamer/releases/20140821223814/app/controllers/payments/team_member_payments_controller.rb:80:in `make_payment1'
/data/teamer/shared/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'A Stripe merchant account log reports:
Parsed Request POST Body
amount: "100"
metadata:
member_payment_event: "225123"
email: "Member's email not available."
payment_variant_id: "273"
charge_type: "member_payment"
payer_id: "253"
card: "tok_xxxxxxxxxx"
currency: "usd"
application_fee: "4"
description: "Team member payment"
Response Body:
- error:
- type: "invalid_request_error"
- message: "Invalid token id: tok_xxxxxxxxxx. The publishable key used to create this token is from a different account."
Exceptional lists this as the URL
post
https://xxxxnet/users/xxxx/payments/xxxx/member_payments/xxxx/make_payment1our make_payment1 method:
def make_payment1
member_payment_event = ::TeamMemberPayment.find params[:id]
if member_payment_event.team_payment_event.payment_variants.present? && params[:team_member_payment][:payment_variant].present?
payment_variant = PaymentVariant.find params[:team_member_payment][:payment_variant]
raise ActiveRecord::RecordNotFound if payment_variant.blank?
amount = (payment_variant.variant_amount.to_f * 100).to_i # in cents
else
amount = (member_payment_event.team_payment_event.amount.to_f * 100).to_i # in cents
end
application_fee = fee(amount, member_payment_event.team_payment_event.country_code).to_i # application_fee is 2.4% of amount in cents
currency = member_payment_event.team_payment_event.currency_code.downcase
if member_payment_event.team_payment_event.payer_pays_collection_fee
amount = amount + application_fee
end
Please let me know if there is any other information I can pass on that would help to diagnose.
Thanks
Steve