Submission

Copy
Copied
medipassTransactionSDK.renderCreateTransaction({
  funder:'dva',
  providerNumber: string,
  invoiceReference: string,

  patient.refId: string,
  // OR
  patient: {
    firstName: string,
    lastName: string,
    dob: string,
    accountNumber: string,
  },
  

  claimableItems: [{
    itemCode: string,
    serviceDateString: string,
    price: string,
  
  }],

  webhooks: [{
    url: string,
    event:
      'healthFundPaidInvoice' |
      'healthFundApprovedInvoice' |
      'healthFundRejectedInvoice',
    method: 'GET' | 'PUT' | 'POST' | 'DELETE',
    headers: { [key: string]: string }
  }],

   funderData: {
      lspn: string,
      facilityId: string,
      isInHospital: boolean,
      treatmentLocation: 'V' | 'H' | 'R' | 'N' | 'C' | undefined
      dva: {
        referral: {
          providerNumber: string,
          providerName: string,
          referrerType: 'gp' | 'specialist',
          issueDateString: string,
          period: 'standard' | 'non-standard' | 'indefinite'
        },
    nonReferral: {
          reason: 'hospital' | 'lost' | 'emergency' | 'not-required' | 'remote-exemption',
          description: string
        }
      }
    }
}, {
  onSuccess: function (transaction) { /* ... */ },
  onError: function (error) { /* ... */ },
  onCancel: function () { /* ... */ }
})
2024 Copyright © Tyro Health and Tyro Payments 2024. All right reserved.