Hello!
I am fairly new to the shopify experience, so bare with me if this question is stupid. Basically, my company is looking to adopt shopify for its ecommerce platform and I have been doing an investigation of it’s processes. So far, so good. There is one aspect I have not been able to figure out however:
I am creating an order object, and saving an existing customer to it:
# query the customer
customer = ShopifyAPI::Customer.search(query: "email:email@example.com").first
# Find product
product = ShopifyAPI::Product.where(title: 'cool title').first
# Create new order
order = ShopifyAPI::Order.new(
:line_items => [
ShopifyAPI::LineItem.new(
:quantity => 1,
:variant_id => product.variants.first.id
)
],
:customer => customer
)
The order object is created successfully, webhooks working correctly indicating the order is placed. I receive the email saying the order has been placed - BUT i haven’t entered any credit card/payment information. The order is marked as ‘unfulfilled’ in the admin dashboard. I had assumed the email I received would ask me to enter payment information, but it didn’t.
Where/how does that happen?