gfffffffff

Razorpay Payment Gateway Sketchware pro

Ad Code Here




{i}.Event Manager





Razorpay Payment success
Razorpay Success
%s
onPaymentSuccess %s.status
@Override public void onPaymentSuccess(String _s) { final String _status = _s; %s }


{ii}.Event Manager



 

Razorpay Payment Failed
Razorpay onFailed
%d %s
onPaymentError %d.code %s.error
@Override public void onPaymentError(int i, String s) { final int _code = i; final String _error = s; %s }
com.razorpay:checkout:1.5.16
public class MainActivity extends AppCompatActivity implements PaymentResultListener {
final Checkout co = new Checkout(); try { JSONObject options = new JSONObject(); options.put("name", "Ajay deplapar"); options.put("description", "App Payment"); options.put("image", "https://codemulti.xyz/wp-content/uploads/2022/06/2352156.jpg"); options.put("currency", "INR"); String payment = edittext1.getText().toString(); double total = Double.parseDouble(payment); total = total * 100; options.put("amount", total); JSONObject preFill = new JSONObject(); preFill.put("email", "kusratsingh@gmail.com"); preFill.put("contact", "9803265423"); options.put("prefill", preFill); co.open(this, options); } catch (Exception e) { Toast.makeText(getApplicationContext(), "Error in payment: " + e.getMessage(), Toast.LENGTH_SHORT).show(); }


<activity

android:name="com.razorpay.CheckoutActivity"

android:hardwareAccelerated="true"

android:theme="@style/AppTheme.FullScreen"

android:screenOrientation="portrait"/>


<meta-data

android:name="com.razorpay.ApiKey"

android:value="YOUR_API_KEY"/>