Skip to content

how to use in firemonkey? #2

@jonahzheng

Description

@jonahzheng

thank you,
How does this component work under android and ios?
Can you give a demo project?

'''
var AStripe: IpasStripe;
var AParams: IpsCreateCheckoutParams;
var AUrl: string;
var AAccount: IpsAccount;
AStripe := TpsFactory.PasStripe('sk_live_', 'acct_');
AParams := TpsFactory.CreateCheckoutParams(cmPayment, scUnknown);
AParams.PaymentMethods := [pmCard];
AParams.Currency := TpsCurrency.scUnknown;
AParams.SuccessUrl := 'http://******';
AParams.CancelUrl := 'http://a*******‘;
AParams.LineItems.AddLineItem('item-' + pid, 1, amount * 100, '', TpsRecurring.None);
AUrl := AStripe.GenerateCheckoutSession(AParams).Url;
OpenURL(AUrl);

'''

in androind, has error
'the page you were looking for could not be found please check the url or contact the merchant'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions