I am Integrating Apple Pay Integration using cyberSource in my Application . iam not clear about cybersource, i have created merchant ID and integrated in my code as below
PKPaymentRequest*request = [[PKPaymentRequest alloc]init];
request.merchantIdentifier = @"com.ID";//Example
request.supportedNetworks = @[PKPaymentNetworkVisa,PKPaymentNetworkMasterCard,PKPaymentNetworkAmex];
request.merchantCapabilities = PKMerchantCapability3DS;
request.countryCode = @"AE";
request.currencyCode = @"AED";
PKPaymentSummaryItem *item = [[PKPaymentSummaryItem alloc] init];
item.label=@"Merchant";
item.amount=[NSDecimalNumber decimalNumberWithString:@"1"];
request.paymentSummaryItems=@[item];
PKPaymentAuthorizationViewController *viewController1 = [[PKPaymentAuthorizationViewController alloc] initWithPaymentRequest:request];
viewController1.delegate = self;
[self presentViewController:viewController1 animated:YES completion:nil];
- (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didAuthorizePayment:(PKPayment *)payment completion:(void (^)(PKPaymentAuthorizationStatus))completion {
NSLog(@"%@", [payment.token description]);
NSLog(@"data%@", payment.token.paymentData);
NSLog(@"description===%@", payment.token.paymentData.description);
NSLog(@"Payment was authorized token: %@", payment.token.transactionIdentifier);
NSLog(@"%@",payment);
NSDictionary *response = [NSJSONSerialization JSONObjectWithData:payment.token.paymentData options:NSJSONReadingAllowFragments error:nil];
NSLog(@"JSON Output: %@", response);
// NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&jsonError];
}
Please help me what should i do next with Cybersource, my payments or not reflecting in cybersource.