Skip to content

pePaytm.makePayment return JSON DATA #1

@rdcoder33

Description

@rdcoder33

Well, I have followed all your instructions but, if return just data passed in JSON Form, this is what when the button is clicked:

WhatsApp Image 2020-07-06 at 16 23 59

NOTE: I am using Production Credentials and testing in a real device.

CODE:

Same as example file:

onPressed: () async {
                               
                                PePaytm pePaytm = new PePaytm(
              paymentURL:
                  'https://us-central1-pubgavatar-28b16.cloudfunctions.net/customFunctions/paymentReceipt');

          await pePaytm.makePayment(context,
              order: Order(
                  orderId: DateTime.now().millisecondsSinceEpoch.toString(),
                  phoneNumber: '7777777777',
                  amount: '120',
                  custId: 'CUST123456',
                  email: '[email protected]'),
                
                );
                 // TODO send your data for payment
        
                              },

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