-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Merhabalar,
Simdi Paycell iOS SDK (0.9.7) versiyonunu kullaniyorum. Asagida bilgilerle configurasyonu yapiyoruz.
[[PaycellPaymentConfigurator sharedConfigurator] setMerchantCode:@"28***"
andTerminalCode:@"10**"
andSecureCode:@"cJQD7lq*****"
andLanguage:@"tr"
andHostAccount:@"example@example.com"
andMerchantLogo:[UIImage imageNamed:@"bkm_bg3"]
andEnvironment:PaycellEnvironmentTest];
Oncelikle buradaki "HostAccount" olarak ne verebiliyoruz. Kullanicilarin bizde telefon numarasi ve email mevcut.
Daha sonra 1 TL lik bir harcama icin asagidaki paymenti olusturuyoruz.
PaycellPayment* payment = [[PaycellPayment alloc] initWithAmount:@"100"
currency:@"99"
securityOption:@"NON_THREED_SECURE"
referenceNumber:@"123123"
installmentPlans:nil];
Buradaki referenceNumberi bizim olusturdugumuz bir id olarak olacak diye dusunuyorum. Daha sonra sizin tarafinizdaki odemeleri sorgulamak icin bu referans numarasini kullanabiliyor muyuz?
Ancak yukairdaki bilgilerle acmama ragmene logta basarisizlik goruyorum.
2019-01-30 22:40:40.978048+0300 Rofoods[3231:517084] SERVIS - http://omccstb.turkcell.com.tr/tpay/paycell/services/forwardapprs/forwardServiceApp/forwardMsisdn/
2019-01-30 22:40:40.978117+0300 Rofoods[3231:517084] (null)
2019-01-30 22:41:31.632341+0300 Rofoods[3231:517274] Task .<1> finished with error - code: -1001
2019-01-30 22:41:31.633784+0300 Rofoods[3231:518375] Paycell SDK : data parameter is nil
2019-01-30 22:41:31.633993+0300 Rofoods[3231:518375] 12313
2019-01-30 22:41:31.634679+0300 Rofoods[3231:518375] [Assert] Cannot be called with asCopy = NO on non-main thread.
2019-01-30 22:41:31.639488+0300 Rofoods[3231:518375] (null)
2019-01-30 22:41:31.640209+0300 Rofoods[3231:517274] Task .<1> HTTP load failed (error code: -999 [1:89])
2019-01-30 22:41:31.644673+0300 Rofoods[3231:518375] SERVIS - http://omccstb.turkcell.com.tr/tpay/paycell/services/sessionrs/sessionService/init/
2019-01-30 22:41:31.645676+0300 Rofoods[3231:518375] {
connectionType = WIFI;
hashData = "AJ8eq08X2M3udcFO/wmHKKzo3fF2hoS5bQtSVkS057Y=";
hostAccount = "example@example.com";
language = tr;
payment = {
amount = 100;
currency = 99;
installmentPlan = (
);
paymentReferenceNumber = 123123;
paymentSecurity = "NON_THREED_SECURE";
};
requestHeader = {
deviceInfo = {
deviceId = "A98E6771-8E3B-46B8-BF9E-A364B52327B7";
deviceManufacturer = Apple;
deviceModel = "iPhone9,3";
deviceOs = iOS;
deviceOsVersion = "12.1";
};
merchant = {
cvvRequired = 0;
merchantCode = 28***;
terminalCode = 10**;
timeoutDuration = 0;
};
transactionInfo = {
application = IOSSDK;
applicationVersion = "1.0";
mode = TEST;
transactionDateTime = 20190130224131640;
transactionId = 20190130224131641540;
version = "1.0";
};
};
}
2019-01-30 22:41:41.082949+0300 Rofoods[3231:518617] Task <93928371-FBEF-4CD8-AC65-690CBFA527C6>.<1> finished with error - code: -1001
2019-01-30 22:41:41.083664+0300 Rofoods[3231:518376] Paycell SDK : data parameter is nil
2019-01-30 22:41:41.083745+0300 Rofoods[3231:518376] 12313
2019-01-30 22:41:41.083876+0300 Rofoods[3231:518376] (null)
2019-01-30 22:41:41.085982+0300 Rofoods[3231:518376] SERVIS - http://omccstb.turkcell.com.tr/tpay/paycell/services/sessionrs/sessionService/init/
2019-01-30 22:41:41.086187+0300 Rofoods[3231:518617] Task <93928371-FBEF-4CD8-AC65-690CBFA527C6>.<1> HTTP load failed (error code: -999 [1:89])
2019-01-30 22:41:41.086381+0300 Rofoods[3231:518376] {
connectionType = WIFI;
hashData = "AJ8eq08X2M3udcFO/wmHKKzo3fF2hoS5bQtSVkS057Y=";
hostAccount = "example@example.com";
language = tr;
payment = {
amount = 100;
currency = 99;
installmentPlan = (
);
paymentReferenceNumber = 123123;
paymentSecurity = "NON_THREED_SECURE";
};
requestHeader = {
deviceInfo = {
deviceId = "A98E6771-8E3B-46B8-BF9E-A364B52327B7";
deviceManufacturer = Apple;
deviceModel = "iPhone9,3";
deviceOs = iOS;
deviceOsVersion = "12.1";
};
merchant = {
cvvRequired = 0;
merchantCode = 28***;
terminalCode = 10**;
timeoutDuration = 0;
};
transactionInfo = {
application = IOSSDK;
applicationVersion = "1.0";
mode = TEST;
transactionDateTime = 20190130224141084;
transactionId = 20190130224141085658;
version = "1.0";
};
};
}