Note that there are some explanatory texts on larger screens.

plurals
  1. POPayPal Error - Please make sure all fields have been entered
    primarykey
    data
    text
    <p>I have a problem in creating a working PayPal button in Sandbox environment.</p> <p>After entering my email and password in the sandbox environment. </p> <p>This is what I see. </p> <p><img src="https://i.stack.imgur.com/Cmwcs.png" alt="enter image description here"></p> <p>Here are my codes</p> <p><strong>AndroidManifest.xml</strong></p> <pre><code>&lt;uses-sdk android:minSdkVersion="15" /&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" &gt; &lt;activity android:name=".MypaypalActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="com.paypal.android.MEP.PayPalActivity" android:configChanges="keyboardHidden|orientation" android:theme="@android:style/Theme.Translucent.NoTitleBar" /&gt; &lt;/application&gt; &lt;uses-permission android:name="android.permission.INTERNET"/&gt; &lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt; &lt;/manifest&gt; </code></pre> <p><strong>MypaypalActivity</strong> </p> <p>public class MypaypalActivity extends Activity implements OnClickListener{ </p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout MainLayout= new LinearLayout(this); setContentView(R.layout.main); PayPal pp = PayPal.initWithAppID(this, "APP-80W284485P519543T", PayPal.ENV_SANDBOX); LinearLayout layoutSimplePayment = new LinearLayout(this); layoutSimplePayment.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); layoutSimplePayment.setOrientation(LinearLayout.VERTICAL); CheckoutButton COButton = pp.getCheckoutButton(this, PayPal.BUTTON_118x24, CheckoutButton.TEXT_PAY); COButton.setOnClickListener(this); layoutSimplePayment.addView(COButton); MainLayout.addView(layoutSimplePayment); setContentView(MainLayout); } public void onClick(View v) { PayPalPayment payment = new PayPalPayment(); payment.setSubtotal(new BigDecimal("10")); payment.setCurrencyType("USD"); payment.setRecipient("becozofeuu_92@hotmail.com"); // payment.setPaymentType(PayPal.PAYMENT_TYPE_GOODS); Intent checkoutIntent = PayPal.getInstance().checkout(payment, this); startActivityForResult(checkoutIntent, 1); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload