Created
October 15, 2015 07:03
-
-
Save realadeel/6e3b1457de2f5e647c34 to your computer and use it in GitHub Desktop.
Stripe::Product#images error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stripe.api_key = 'sk_live_REDACTED' | |
product = Stripe::Product.retrieve('prod_7ANlgvTDSwqEsk') | |
product.images | |
=> [] | |
product.images = ["https://daqj0hamajdep.cloudfront.net/api/file/rnlqHhGJSxS06buwvelQ+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/hXesXSFRJSNyfNcJdiwg+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/sbWRFmORRYOglcd5LiT8+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/GDXMYn1ITWL9GEBVrVTI+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/6AULYuihQZO8Bo6SF6fl+name.jpg"] | |
product.save | |
Stripe::InvalidRequestError: (Status 400) (Request req_7APt7XgqEEzmAm) Invalid array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment