razorpay / razorpay-php

Razorpay PHP Library
MIT License
185 stars 128 forks source link

Issue on addAllowedPayer on Smart Collect #275

Closed ashishbudhraja closed 2 years ago

ashishbudhraja commented 2 years ago

Hi,

When I am trying to add Payers to Smart Collect API, i am getting this issue

types is/are not required and should not be sent

ankitdas13 commented 2 years ago

Hi @ashishbudhraja can you please use this code snippet for addAllowedPayer $api->virtualAccount->fetch($virtualId)->addAllowedPayer(array('type' => 'bank_account','bank_account' => array('ifsc'=>'UTIB0000013','account_number'=>'914010012345679')));

please let us know if this issue persists