Closed raghubb4444 closed 7 years ago
Hello Raghub, Are you using two accounts to comment on issues? This is confusing and increases our work load. Kind regards
Felix
One of my colleague also working on that. Now i newly started. This is my code. Just go through
We stuck with this issue for the past 4 days.Just a help..
Hi Raghub.
As we tried to outline in a different issue you or one of your co-workers opened you can either 1) call presentLogin... which will show a login view controller where the merchant has to manually enter his username and password, then tap "Login". This is what the sample app provided does. Build and run and you will see it in action. 2) Advanced: Acquire a token from SumUp's API, which is what you seem to be doing here. You will then have to call loginWithToken: providing this token. Once the completion block has run indicating success you can go ahead and call checkoutWithRequest just like the sample app does.
So either presentLogin...
OR acquire token and call loginWithToken:..
Please clarify these questions for us:
Please stop opening support issues under multiple user names on multiple repositories. We are trying to help you, receiving a barrage of issues and comments does not speed up the process. To the contrary.
Kind regards
Felix
@felixLam sorry for my mistake.
okay, so you are at (2) in my comment above
You will then have to call loginWithToken: providing this token. Once the completion block has run indicating success you can go ahead and call checkoutWithRequest just like the sample app does.
After passing Username and password to sumup request am getting response with accesstoken and merchant code. After that, I have to call present login method or login with token.
You have to call loginWithToken:
with that token, not presentLogin...
. Just read my comment above https://github.com/sumup/sumup-ios-sdk/issues/27#issuecomment-260595475 once again.
ok.what should i pass in that completion argument? is it Right?
SumupSDK.loginWithToken(Appconstant.access_token, completion:{ [weak self](success, error) in
guard error == nil else {
return
}
})
If i click login means, It shows same error.Not presenting checkout as user is not logged in.
@felixLam small help. Just am clicking login button first time it shows card terminal view. Then if i click cancel in card terminal view, it comes back and shows login view. But now if i click login(second time) means, it enters into error loop in completion block
@felixLam @mollidor small issue? After the card terminal view, If i connect t device and type the value, it closes the app.what may be the issue?
Have the other issues been resolved then? Please provide a crash log.
@felixLam Other issues are solved. I didn't have Device with me. Client is only having device. Just i sent the .ipa.He is saying that, after the card insertion it closes the app like that.What may be the problem?
@raghubb4444 Please provide a crash log.
Without a crash log it is really hard to say. The crash is most likely in your code. Previously you had many lines where you force unwrap an optional variable (using !). This is always bad. Use guard let or if let instead and check that the variable is not nil before accessing any of its properties/methods otherwise you will receive a lot of crashes.
Given that you reported the initial issues as resolved I am closing this issue. For the crash: please follow common swift debugging practices. This is not an issue with the SDK.
I didn't have device. I am able to check using the device.Card insertion closes the app like he is saying
I did not deny that you are witnessing crashes, however without a symbolicated crash report it will be impossible to help you.
@felixLam There? please go through my code for sumup. https://gist.github.com/raghubb4444/3e780ce8a1f772b860c2345b79ee4f6b
The only think that strikes me is that you do not use the merchant's currencycode and instead always use USD. We had discussed this earlier and the sample app provides appropriate sample code. Does your IPA have assertions enabled? Again without the crash logs we will not be able to help you in any meaningful way. Please learn how to collect, symbolicate and interpret crash reports.
This is also possible with external installations and is not limited to debugging sessions. Have a look at crashlytics or hockeyapp
This is my app. App closes after inserting card. https://www.youtube.com/watch?v=t14Y_bt7mPU
Crashlytics shows error. Am not able to integrate crashlytics in my app.
Can you please provide the crash log. You can download it from the device using Xcode if you don't want to integrate HockeyApp/Crashlytics.
@felixLam there?Please helpout.
Which version of the SDK are you using? If you are using 1.3 please make sure to follow the steps here: https://github.com/sumup/sumup-ios-sdk#supported-device-orientation
Feel free to move to 1.3.1b which doesn't need you to support landscape anymore: https://github.com/sumup/sumup-ios-sdk/tree/develop
https://github.com/sumup/sumup-ios-sdk/blob/develop/CHANGELOG.md#version-131b1
App executed by client. just i sent .ipa and he executed the app. That is that video. Am not able to get crash log. I installed crashlytics. But its not showing crash report. Please helpout as a individual.
Do you have teamViewer? Please helpout. My client scolding lot.
Did you read and follow my thoughts in https://github.com/sumup/sumup-ios-sdk/issues/27#issuecomment-261263867 ?
You should at least be able to tell us a) which version of the SDK you are integrating b) if the app you built support a landscape orientation https://github.com/sumup/sumup-ios-sdk/blob/master/SumupSDKSampleApp/SumupSDKSampleApp-Info.plist#L54-L60 (if on SDK 1.3)
Following 1.3 only. No support for landscape orientation.
You will have to support one of the two landscape orientations if you are using 1.3 See Readme and sample app: https://github.com/sumup/sumup-ios-sdk#supported-device-orientation https://github.com/sumup/sumup-ios-sdk/blob/master/SumupSDKSampleApp/SumupSDKSampleApp-Info.plist#L54-L60
If you can not support a landscape orientation I would suggest to integrate the latest 1.3.1 Beta version to be found here: https://github.com/sumup/sumup-ios-sdk/tree/develop
It should be a drop in replacement.
It is in my info.plist
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
Yes, that's iPad. The video you shared is an iPhone.
I have to run it in iphone. I selected only potrait orientation. Don't need landscape. But i used 1.3. What can i do now?
I outlined your options 10 minutes ago: https://github.com/sumup/sumup-ios-sdk/issues/27#issuecomment-261274481
Ok. but i already did 1.3. What is the difference?Or i have to add this 1.3.b framework from the first
Just drop in 1.3.1b2 from the develop branch of this repo. There's a changelog which I've linked to before: https://github.com/sumup/sumup-ios-sdk/blob/develop/CHANGELOG.md
in xcode, what i have to change?
Still getting error. If i insert a card, app closes.
Did you make changes to your app? Did you move to SDK 1.3.1b2 ?
i want to present card terminal view after i click my login button.This is my code: https://gist.github.com/pradeepkumari/f5e6f78e8085d70d1a19d1141424d84a