Razorpay Payment Gateway Sketchware pro
6/14/2023
.copy-button svg{margin-right: 10px;vertical-align: top;}
.copy-button{
height: 45px; width: 155px; color: #fff; background:
#265df2; outline: none; border: none; border-radius: 8px; font-size: 17px;
font-weight: 400; margin: 8px 0; cursor: pointer; transition: all 0.4s
ease;}
.copy-button:hover{background: #2ECC71;}
@media (max-width: 480px) {#button{width: 100%;}}
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"/>
Genrerating Link.... 15 seconds.
Your Link is Ready.