2015-10-09 24 views
0

按照蘋果的指導方針(https://developer.apple.com/appstore/resources/approval/guidelines.html)貝寶的整合,我發現,我們不應該使用在應用程序內購買購買/銷售實體商品,我建立一個iOS應用買入/賣出一些實體商品,在iOS應用

蘋果是否批准我的應用程序,如果我使用支付寶和authorize.net支付網關在我的應用程序購買/銷售實體商品?

如果蘋果允許我們使用這些第三方支付網關,什麼蘋果份額?每個貝寶/信用卡交易需要蘋果花費多少錢? (我知道蘋果公司在APP購買(IAP)中的比例爲30%,這是否適用於PayPal/authorize.net?)

回答

0

沒有100%的確定性可以說但是,蘋果允許您使用自己的產品支付方式。

所以你可以包括貝寶或任何其他你想要的。

至於蘋果的份額來講沒有他們不會採取在這種情況下,但服務提供商(如PayPal)的任何明星將他們的交易收取手續費按他們的收費結構。

0
hear is the link that you can download demo :-https://github.com/kristianmandrup/paypal-billing-demo 

and I was implement in my app 

#in AppDelegate 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 

    [PayPalMobile initializeWithClientIdsForEnvironments:@{PayPalEnvironmentProduction : @"YOUR_CLIENT_ID_FOR_PRODUCTION", 
                  PayPalEnvironmentSandbox : @"AeB0tbkw-z4Ys3NvxekUZxnVNk26WXRodQBETFG4x-HtQAuqBf5k4edWOn2zia_l8RWBFJGEUNSVWJWg"}]; 

    return YES; 
} 
#with your Controller 

#in your .h File set delegate 

@interface MyCart : UITableViewController 

@property(nonatomic, strong, readwrite) PayPalConfiguration *payPalConfig; 

#in your .m File 

- (void)viewDidLoad { 
NSString *[email protected]"sandbox"; 
    self.environment = environment; 
    [PayPalMobile preconnectWithEnvironment:environment]; 


_payPalConfig = [[PayPalConfiguration alloc] init]; 
    _payPalConfig.acceptCreditCards = YES; 
    _payPalConfig.merchantName = @"ScanPay"; 
    _payPalConfig.merchantPrivacyPolicyURL = [NSURL URLWithString:@"https://www.paypal.com/webapps/mpp/ua/privacy-full"]; 
    _payPalConfig.merchantUserAgreementURL = [NSURL URLWithString:@"https://www.paypal.com/webapps/mpp/ua/useragreement-full"]; 

    _payPalConfig.languageOrLocale = [NSLocale preferredLanguages][0]; 

    _payPalConfig.payPalShippingAddressOption = PayPalShippingAddressOptionPayPal; 


} 
#Code with purchase button event 

-(IBAction)btnCheckoutTapped 
{ 
// UIAlertView *alt=[[UIAlertView alloc]initWithTitle:@"ScanPay" message:@"Under Development" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil]; 
// [alt show]; 

    NSDecimalNumber *subtotal = [[NSDecimalNumber alloc]initWithDouble:Price]; 

    // Optional: include payment details 
    NSDecimalNumber *shipping = [[NSDecimalNumber alloc] initWithString:@"0.00"]; 
    NSDecimalNumber *tax = [[NSDecimalNumber alloc] initWithString:@"0.00"]; 
    PayPalPaymentDetails *paymentDetails = [PayPalPaymentDetails paymentDetailsWithSubtotal:subtotal 
                       withShipping:shipping 
                        withTax:tax]; 
    NSDecimalNumber *total = [[subtotal decimalNumberByAdding:shipping] decimalNumberByAdding:tax]; 

    PayPalPayment *payment = [[PayPalPayment alloc] init]; 
    payment.amount = total; 
    payment.currencyCode = @"USD"; 
    payment.shortDescription = @"You Pay"; 
    payment.paymentDetails = paymentDetails; // if not including payment details, then leave payment.paymentDetails as nil 
    if (!payment.processable) { 
     // This particular payment will always be processable. If, for 
     // example, the amount was negative or the shortDescription was 
     // empty, this payment wouldn't be processable, and you'd want 
     // to handle that here. 
    } 
    // Update payPalConfig re accepting credit cards. 
    self.payPalConfig.acceptCreditCards = YES; 

    PayPalPaymentViewController *paymentViewController = [[PayPalPaymentViewController alloc] initWithPayment:payment 
                           configuration:self.payPalConfig 
                            delegate:self]; 
    [self presentViewController:paymentViewController animated:YES completion:nil]; 


} 
#PayPalPaymentDelegate methods 

- (void)payPalPaymentViewController:(PayPalPaymentViewController *)paymentViewController didCompletePayment:(PayPalPayment *)completedPayment { 
    NSLog(@"PayPal Payment Success!"); 
    [self ErrorWithString:@"PayPal Payment Success!"]; 



    self.resultText = [completedPayment description]; 
    //[self showSuccess]; 

    [self sendCompletedPaymentToServer:completedPayment]; // Payment was processed successfully; send to server for verification and fulfillment 
    [self dismissViewControllerAnimated:YES completion:nil]; 

    ReceiptScreen *obj=[self.storyboard instantiateViewControllerWithIdentifier:@"ReceiptScreen"]; 
    [self.navigationController pushViewController:obj animated:YES]; 

} 

- (void)payPalPaymentDidCancel:(PayPalPaymentViewController *)paymentViewController { 
    NSLog(@"PayPal Payment Canceled"); 
    self.resultText = nil; 
    // self.successView.hidden = YES; 
    [self dismissViewControllerAnimated:YES completion:nil]; 
} 

#pragma mark Proof of payment validation 

- (void)sendCompletedPaymentToServer:(PayPalPayment *)completedPayment { 
    // TODO: Send completedPayment.confirmation to server 
    NSLog(@"Here is your proof of payment:\n\n%@\n\nSend this to your server for confirmation and fulfillment.", completedPayment.confirmation); 
}