ref: master
plugins/payments/controllers/myprofile/payments_plugin_payment_controller.rb
1 2 3 4 5 6 7 8 9 |
class PaymentsPluginPaymentController < MyProfileController def create @payment = PaymentsPlugin::Payment.new params.require(:payment).permit(:orders_plugin_order_id, :payment_method_id, :value, :description) @payment.profile_id = profile.id @payment.operator_id = user.id @payment.save! end end |