Class: RubyNative::IAP::PurchasesController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RubyNative::IAP::PurchasesController
- Defined in:
- app/controllers/ruby_native/iap/purchases_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/ruby_native/iap/purchases_controller.rb', line 6 def create intent = PurchaseIntent.create!( customer_id: params[:customer_id], product_id: params[:product_id], success_path: params[:success_path], environment: params[:environment] || "production" ) render json: {uuid: intent.uuid, product_id: intent.product_id} end |