lib/stm_api.rb in stm_api-0.1.3 vs lib/stm_api.rb in stm_api-0.1.4
- old
+ new
@@ -61,10 +61,10 @@
'paymentMethodNonce' => payment_infos_json['paymentMethods'].first['nonce'],
'teamId' => @team_id
}
transaction_response = RestClient.post('https://api.sharethemeal.org/api/payment/braintree/transactions', transaction_payload.to_json, content_type: :json, accept: :json,
- 'Authorization' => "Bearer #{bearer}")
+ 'Authorization' => "Bearer #{BEARER}")
transaction_response_json = JSON.parse(transaction_response)
if transaction_response_json['result']['donationCreated'] == true
return true
else