Closed erustique closed 7 years ago
Hey @erustique ,
It sounds like you're just trying to get the example app up and running. It'll be easiest if you deploy the example-ios-backend to Heroku (there's a button to do that here), and set your BackendChargeURLString
to the URL of your Heroku app.
Hope that helps!
To make it easier to diagnose your issue, please fill out the following:
Summary
Running the custom app, I have the "example-ios-backend" running locally on my machine. It also has OS X Server.app running. I can see the tokens getting created in my stripe dashboard, so the purchase is getting setup, at least. The charge server is not getting contacted.
I placed the example-iso-backend in the /Library/Server/Web/Data/Sites/htdocs area where I keep that site. I set permissions to _www:admin and started the server using:
padmin@hickory -bash [/Library/Server/Web/Data/Sites/htdocs/example-ios-backend] (v1.0.2-swift3) 12456 $ ruby web.rb [2016-11-30 02:25:53] INFO WEBrick 1.3.1 [2016-11-30 02:25:53] INFO ruby 2.1.2 (2014-05-08) [x86_64-darwin13.0] == Sinatra/1.4.5 has taken the stage on 4567 for development with backup from WEBrick [2016-11-30 02:25:53] INFO WEBrick::HTTPServer#start: pid=15586 port=4567
This server has an SSL certificate for hickory.ksapps.com which seems to be valid. You can check it here at the vendor's site: https://www.digicert.com/help/index.htm?host=hickory.ksapps.com
Code to reproduce
If possible, please include a brief piece of code (or ideally, a link to an example project) demonstrating the problem you're having.
iOS version
Xcode Version 8.1 (8B62)
What version of iOS are you observing the problem on?
iOS 10.0 simulator
Installation method
How did you install our SDK?
I git cloned this repos to my disk.
SDK version
What version of our SDK are you using? You can find this by either looking at your
Podfile.lock
(if you're using Cocoapods), yourCartfile.resolved
(if you're using Carthage), or by looking at the value ofSTPSDKVersion
inSTPAPIClient.h
.// // STPAPIClient.h // StripeExample // // Created by Jack Flintermann on 12/18/14. // Copyright (c) 2014 Stripe. All rights reserved. //
import <Foundation/Foundation.h>
import <PassKit/PassKit.h>
import "STPBlocks.h"
NS_ASSUME_NONNULL_BEGIN
define FAUXPAS_IGNORED_ON_LINE(...)
define FAUXPAS_IGNORED_IN_FILE(...)
FAUXPAS_IGNORED_IN_FILE(APIAvailability)
static NSString *const STPSDKVersion = @"9.2.0";
Other information
Here is my session log: