Skip to content

Mondido/ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IOS SDK for Mondido Payments

Version 1.4

The iOS SDK provides developers with a easy-to-use library to make payments in their iOS application. Open the included demo application and see how it works.

UPDATE
If you are targeting newer IOS versions, Apple require higher level of security and also IPV6. Use this IPV6/IPV4 and TLS1.2 only, URL for POST payment.

mondido.payUrl = @"https://pay-dual.mondido.com/v1/form?lang=en";

Example:

- (void)viewDidLoad
{
    [super viewDidLoad];

    //Find your settings here: https://admin.mondido.com/en/settings
    mondido = [[MondidoBase alloc] init];
    //mondido.template_id = @"1"; //to hard code the payment template
    [mondido.meta_data setObject:@"productName" forKey:@"metadata[products][1][name]"];
    [mondido.meta_data setObject:@"red" forKey:@"metadata[products][1][color]"];
    
    mondido.payUrl = @"https://pay.mondido.com/v1/form?lang=en";
    mondido.amount = @"1.00";
    mondido.currency = @"sek"; //must be in lower case
    mondido.merchant_id = @"233";
    mondido.secret = @"$2a$10$gU.z.9QNc8VSGYqcJSOhv."; // should not store secret in app.
    mondido.payment_ref = @"test1";
    mondido.customer_ref = @"customer1";
    mondido.mondido_hash = @"";
    mondido.success_url = @"https://mondido.com/success";
    mondido.error_url = @"https://mondido.com/fail";
    mondido.test = @"true";
    mondido.webhook = @"{\"trigger\":\"payment_success\",\"email\":\"[email protected]\"}";
    mondido.payment_ref = mondido.randomOrderId; //just for testing. remove in production.
    mondido.mondido_hash = mondido.createHash; //should be loaded from backend
    paymentView = mondido.createWebView; //create one here instead of storyboard/xib
    [self.view addSubview:paymentView]; //add view to stage. default is streatched over the whole screen.
    
    [mondido makeHostedPayment:paymentView withCallback:^(PaymentStatus status) {
        if(status == SUCCESS){
            //success
        }else{
            //problems
        }
     }];
}

IMPORTANT:

Mondido is a certified payment provider compliant to Payment Card Industry Data Security Standard (PCI DSS) to provide a secure transaction for merchants and their customers. PCI compliance for merchants is required for any business accepting cardholder data.

We strongly recommend NOT sending card numbers unencrypted to and from your server. Let Mondido capture this sensitive information using one of our hosted window or .js solutions to avoid PCI compliance issues. https://www.mondido.com/documentation/hosted https://www.mondido.com/documentation/mondidojs

CONFIGURATION:

First sign up and create your merchant account at: https://www.mondido.com/registrera

Settings

Api BaseUrl

https://api.mondido.com/v1

Api Username

The merchant id found at: https://www.mondido.com/en/settings#api after you have logged in and created a merchant account

Api Password

The merchant password that you have set at: https://www.mondido.com/en/settings#api after you have logged in and created a merchant account

Api Secret

The merchant secret that you can find at: https://www.mondido.com/en/settings#api after you have logged in and created a merchant account

RSAKey

The merchant RSA public key that you can find at: https://www.mondido.com/en/settings#api after you have logged in and created a merchant account

===========

Mondido Payments Documentation

Our focus is to make it as smooth as possible for you to implement Mondido and start accepting payments, regardless of whether you are implementing from scratch or already have an existing payment service in place.

Read more

Supported Card Types

Default card types that you will have access to are VISA and Mastercard, but the other such as AMEX, JCB and Diners are on separate contracts. Contact support for more information about card types.

Test Cards

To create test transactions you need to send in a test card number, and also a CVV code that can simulate different responses

Error messages

We aim to send as many insightful and helpful error messages to you as possible, both in numeric, data and human readable.

Help

PCI DSS

Mondido is a certified payment provider compliant to Level 1 Payment Card Industry Data Security Standard (PCI DSS) version 3.1 to provide a secure transaction for merchants and their customers. PCI compliance for merchants is required for any business accepting cardholder data. Let Mondido capture this sensitive information using one of our Hosted Window or mondido.js solutions to avoid PCI compliance issues.

3D-Secure

Mondido understands the need to incorporate best business practices in security. That's why we've made it easy for merchants to implement 3D Secure or “3 Domain Secure” as the industry standard identity check solution to minimize chargebacks from fraudulent credit cards, all included in our simple pricing. 3D-Secure refers to second authentication factor products such as Verified by Visa, MastercardⓇSecureCode™, American Express SafekeyⓇ, and JCB J/Secure™.

NOTE: While you can create your own payment experience, We strongly recommend using our Hosted Window or Mondido.js solution to save time in implementing 3D-Secure and client side encryption to your checkout procedure.

SSL

Secure Socket Layer is required to securely transfer cardholder data and payment information to Mondido. It is recommended that you purchase a SSL certificate directly through a recognized certification authority such as TrustwaveⓇ, HTTPS.SE or purchase a custom SSL certificate through your current e-commerce solution.

Follow us on

Do not hesitate to contact [email protected] for any questions!