Correct way to link PayPal Accounts to vault with Braintree DropUI
问题 I have the following controller: class PaymentsController < ApplicationController before_action :authenticate_user!, only: [:new] def new gon.client_token = generate_client_token end def create @result = Braintree::Transaction.sale( amount: 60, payment_method_nonce: params[:payment_method_nonce]) if @result.success? puts @result.transaction.payment_instrument_type flash[:notice] = 'Yes, transaction completed' else flash[:alert] = "Something went wrong while processing your transaction. Please